public class JAXRSJSONMessageBodyReader extends HypermediaJSONMessageBodyReader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
INPUT_JSON_REQUEST_ATTRIBUTE_NAME, mSigningService, mSupplementaryPayloadSchemaProperties
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
JAXRSJSONMessageBodyReader()
Constructs an instanceof JSONMessageBodyReader
|
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
This is called after a Service has been created, placed into the
naming hierarchy, and initialized with its configured property
values.
|
boolean |
isReadable(java.lang.Class<?> pType,
java.lang.reflect.Type pGenericType,
java.lang.annotation.Annotation[] pAnnotations,
MediaType pMediaType)
check to see if the given type is readable
|
org.json.JSONObject |
readFrom(java.lang.Class<org.json.JSONObject> pType,
java.lang.reflect.Type pGenericType,
java.lang.annotation.Annotation[] pAnnotations,
MediaType pMediaType,
<any> pHttpHeaders,
java.io.InputStream pEntityStream)
read the json from the input stream
|
addSupplementaryPayloadSchemaProperty, getSigningService, getSupplementaryPayloadSchemaProperties, readStateData, setSigningService, setSupplementaryPayloadSchemaProperties
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public JAXRSJSONMessageBodyReader()
public boolean isReadable(java.lang.Class<?> pType, java.lang.reflect.Type pGenericType, java.lang.annotation.Annotation[] pAnnotations, MediaType pMediaType)
public org.json.JSONObject readFrom(java.lang.Class<org.json.JSONObject> pType, java.lang.reflect.Type pGenericType, java.lang.annotation.Annotation[] pAnnotations, MediaType pMediaType, <any> pHttpHeaders, java.io.InputStream pEntityStream) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public void doStartService() throws ServiceException
GenericService
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting up