public class JAXRSJSONMessageBodyWriter extends GenericService
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
protected atg.service.jaxrs.JSONService | 
mJsonService
property: JsonService 
 | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
JAXRSJSONMessageBodyWriter()  | 
| Modifier and Type | Method and Description | 
|---|---|
atg.service.jaxrs.JSONService | 
getJSONService()
Get the JSONService. 
 | 
long | 
getSize(java.lang.Object pObject,
       java.lang.Class<?> pType,
       java.lang.reflect.Type pGenericType,
       java.lang.annotation.Annotation[] pAnnotations,
       MediaType pMediaType)
Get the size of the returned data. 
 | 
boolean | 
isWriteable(java.lang.Class<?> pType,
           java.lang.reflect.Type pGenericType,
           java.lang.annotation.Annotation[] pAnnotations,
           MediaType pMediaType)
check to see if this provider can write the given type 
 | 
void | 
setJSONService(atg.service.jaxrs.JSONService pJsonService)
Set the JSON Service. 
 | 
void | 
writeTo(java.lang.Object pObject,
       java.lang.Class<?> pType,
       java.lang.reflect.Type pGenericType,
       java.lang.annotation.Annotation[] pAnnotations,
       MediaType pMediaType,
       <any> pHttpHeaders,
       java.io.OutputStream pEntityStream)
write the JSONObject or JSONArray to the output stream 
 | 
addLogListener, createAdminServlet, doStartService, 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, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static final java.lang.String CLASS_VERSION
protected atg.service.jaxrs.JSONService mJsonService
public atg.service.jaxrs.JSONService getJSONService()
public void setJSONService(atg.service.jaxrs.JSONService pJsonService)
pJsonService - the json service.public long getSize(java.lang.Object pObject,
                    java.lang.Class<?> pType,
                    java.lang.reflect.Type pGenericType,
                    java.lang.annotation.Annotation[] pAnnotations,
                    MediaType pMediaType)
public boolean isWriteable(java.lang.Class<?> pType,
                           java.lang.reflect.Type pGenericType,
                           java.lang.annotation.Annotation[] pAnnotations,
                           MediaType pMediaType)
public void writeTo(java.lang.Object pObject,
                    java.lang.Class<?> pType,
                    java.lang.reflect.Type pGenericType,
                    java.lang.annotation.Annotation[] pAnnotations,
                    MediaType pMediaType,
                    <any> pHttpHeaders,
                    java.io.OutputStream pEntityStream)