public class RESTAPI extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RESTAPI.Action
The Enum Action.
|
Modifier and Type | Field and Description |
---|---|
protected static AAILogger |
aaiLogger |
protected String |
COMPONENT |
AAITxnLog |
txn |
Constructor and Description |
---|
RESTAPI() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
consumerExceptionResponseGenerator(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo info,
HttpMethod templateAction,
AAIException e,
LogLine logline)
Consumer exception response generator.
|
protected String |
genDate()
Gen date.
|
protected String |
genDate(LogLine logline)
Gen date.
|
protected org.eclipse.persistence.dynamic.DynamicEntity |
getDynamicEntityForRequest(org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContext jaxbContext,
AAIResource aaiRes,
String objectFromRequest,
AAIExtensionMap aaiExtMap)
Gets the dynamic entity for request.
|
protected String |
getFromAppId(javax.ws.rs.core.HttpHeaders headers,
LogLine logline)
Gets the from app id.
|
protected String |
getMediaType(List<javax.ws.rs.core.MediaType> mediaTypeList)
Gets the media type.
|
protected String |
getTransId(javax.ws.rs.core.HttpHeaders headers,
LogLine logline)
Gets the trans id.
|
void |
logTransaction(String appId,
String tId,
String action,
String input,
String rqstTm,
String respTm,
String request,
javax.ws.rs.core.Response response,
LogLine logline)
Log transaction.
|
void |
logTransaction(String appId,
String tId,
String action,
String input,
String rqstTm,
String respTm,
String request,
String respBuf,
String status)
Log transaction.
|
void |
logTransaction(String appId,
String tId,
String action,
String input,
String rqstTm,
String respTm,
String request,
String respBuf,
String status,
LogLine logline)
Log transaction.
|
protected int |
setDepth(String depthParam)
Sets the depth.
|
protected void |
validateIntrospector(Introspector obj,
Loader loader,
URI uri,
boolean validateRequired)
Validate introspector.
|
protected static AAILogger aaiLogger
protected final String COMPONENT
public AAITxnLog txn
protected String getFromAppId(javax.ws.rs.core.HttpHeaders headers, LogLine logline) throws AAIException
headers
- the headerslogline
- the loglineAAIException
- the AAI exceptionprotected String getTransId(javax.ws.rs.core.HttpHeaders headers, LogLine logline) throws AAIException
headers
- the headerslogline
- the loglineAAIException
- the AAI exceptionprotected String genDate()
protected String genDate(LogLine logline)
logline
- the loglineprotected String getMediaType(List<javax.ws.rs.core.MediaType> mediaTypeList)
mediaTypeList
- the media type listprotected org.eclipse.persistence.dynamic.DynamicEntity getDynamicEntityForRequest(org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContext jaxbContext, AAIResource aaiRes, String objectFromRequest, AAIExtensionMap aaiExtMap) throws JAXBException
jaxbContext
- the jaxb contextaaiRes
- the aai resobjectFromRequest
- the object from requestaaiExtMap
- the aai ext mapJAXBException
- the JAXB exceptionpublic void logTransaction(String appId, String tId, String action, String input, String rqstTm, String respTm, String request, String respBuf, String status)
appId
- the app idtId
- the t idaction
- the actioninput
- the inputrqstTm
- the rqst tmrespTm
- the resp tmrequest
- the requestrespBuf
- the resp bufstatus
- the statuspublic void logTransaction(String appId, String tId, String action, String input, String rqstTm, String respTm, String request, javax.ws.rs.core.Response response, LogLine logline)
appId
- the app idtId
- the t idaction
- the actioninput
- the inputrqstTm
- the rqst tmrespTm
- the resp tmrequest
- the requestresponse
- the responselogline
- the loglinepublic void logTransaction(String appId, String tId, String action, String input, String rqstTm, String respTm, String request, String respBuf, String status, LogLine logline)
appId
- the app idtId
- the t idaction
- the actioninput
- the inputrqstTm
- the rqst tmrespTm
- the resp tmrequest
- the requestrespBuf
- the resp bufstatus
- the statuslogline
- the loglineprotected int setDepth(String depthParam) throws AAIException
depthParam
- the depth paramAAIException
- the AAI exceptionprotected javax.ws.rs.core.Response consumerExceptionResponseGenerator(javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo info, HttpMethod templateAction, AAIException e, LogLine logline)
headers
- the headersinfo
- the infotemplateAction
- the template actione
- the elogline
- the loglineprotected void validateIntrospector(Introspector obj, Loader loader, URI uri, boolean validateRequired) throws AAIException, UnsupportedEncodingException
obj
- the objloader
- the loaderuri
- the urivalidateRequired
- the validate requiredAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionCopyright © 2017. All Rights Reserved.