public abstract class AnyWebService extends Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
static javax.ws.rs.core.CacheControl |
CACHE |
static javax.ws.rs.core.CacheControl |
NO_CACHE |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
Constructor and Description |
---|
AnyWebService() |
Modifier and Type | Method and Description |
---|---|
protected Object |
filter(Object result,
String accessor)
Filter for a property for a given result from a service.
|
protected javax.ws.rs.core.CacheControl |
getCacheDef()
Define a Service specific
CacheControl definition.By default this is , override to suit any service specific implementation. |
javax.ws.rs.core.Response |
getTestString() |
protected Object |
query(String queryNameId,
Class beanTypeClass,
String accessor) |
protected Object |
query(String queryNameId,
Object inputParams)
Fetch Query results from server based on a
ExternalAccessTransformer Spring Bean name. |
public static final javax.ws.rs.core.CacheControl NO_CACHE
public static final javax.ws.rs.core.CacheControl CACHE
@Context protected javax.servlet.http.HttpServletRequest request
@Context protected javax.servlet.http.HttpServletResponse response
@Autowired protected org.springframework.context.ApplicationContext applicationContext
protected javax.ws.rs.core.CacheControl getCacheDef()
CacheControl
definition.CacheControl
protected Object query(String queryNameId, Object inputParams) throws Exception
ExternalAccessTransformer
Spring Bean name. The parameters are passed as input to the Transformer
JPAQueryTransformer
will back up the Transformation process; however any adapter could be used to pull data from any data source.queryNameId
- as beanid for a Transformer that will accept the inputParams being passedinputParams
- as Object @nullable trueException
protected Object query(String queryNameId, Class beanTypeClass, String accessor) throws Exception
Exception
protected Object filter(Object result, String accessor)
result
- of a Service callaccessor
- as String to filter into the result@GET @Path(value="test") @Consumes(value="text/plain") @Produces(value="text/plain") public javax.ws.rs.core.Response getTestString()
Copyright © 2018. All rights reserved.