public class JAXRSApplication
extends Application
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_CONTEXT_ATTRIBUTE
Constant key used to save application instance in ServletContext
|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected Client |
mInternalClient
Reference to internal client.
|
protected atg.service.payloadschema.PayloadSchemaRegistry |
mPayloadSchemaRegistry
property: paylaodSchemaRegistry
|
protected JAXRSApplication |
mPredecessorApplication
property: predecessorApplication - Reference to the jaxrs application that precedes this one by version
|
protected RestResourceRegistry |
mRestResourceRegistry
property: restResourceRegistry
|
protected ServiceLocator |
mServiceLocator
Reference to the service locator.
|
protected JAXRSApplication |
mSuccessorApplication
property: successorApplication - Reference to the jaxrs application that succeeds this one by version
|
protected static java.lang.String |
PAYLOAD_SCHEMA_REGISTRY_PATH_PARAM
Constant for init-param path of PayloadSchemaRegistry
|
protected static java.lang.String |
RESOURCE_REGISTRY_PATH_PARAM
Constant for init-param path of RestResourceRegistry
|
Constructor and Description |
---|
JAXRSApplication(javax.servlet.ServletConfig pServletConfig)
Constructs an instanceof JAXRSApplication
Resolves the correct registries and stores a reference to this instance in the servlet context for use downstream.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<?>> |
getClasses()
Get the endpoint classes.
|
java.lang.String |
getContextRoot()
Get the context root from our Rest Resource Registry
|
Client |
getInternalClient()
Get the internal client.
|
atg.service.payloadschema.PayloadSchemaRegistry |
getPayloadSchemaRegistry()
Gets the payload schema registry that is in context for this jersey servlet application instance.
|
JAXRSApplication |
getPredecessorApplication()
Getter for the jaxrs application that precedes this one by version.
|
RestResourceRegistry |
getRestResourceRegistry()
Gets the rest resource registry that is in context for this jersey servlet application instance.
|
ServiceLocator |
getServiceLocator()
Gets back a service locator we can use to find different internal jersey services.
|
java.util.Set<java.lang.Object> |
getSingletons()
Get any configured provider instances, e.g.
|
JAXRSApplication |
getSuccessorApplication()
Getter for the jaxrs application that succeeds this one by version.
|
protected void |
initialize(javax.servlet.ServletConfig pServletConfig) |
boolean |
isLatest()
Utility method to determine if this jaxrs application represents the latest version of the api.
|
protected void |
setPayloadSchemaRegistry(atg.service.payloadschema.PayloadSchemaRegistry pPayloadSchemaRegistry)
Sets the payload schema registry that is in context for this jersey servlet application instance.
|
void |
setPredecessorApplication(JAXRSApplication pPredecessorApplication)
Setter for the jaxrs application that precedes this one by version
|
protected void |
setRestResourceRegistry(RestResourceRegistry pRestResourceRegistry)
Sets the rest resource registry that is in context for this jersey servlet application instance.
|
void |
setSuccessorApplication(JAXRSApplication pSuccessorApplication)
Setter for the jaxrs application that succeeds this one by version
|
public static final java.lang.String CLASS_VERSION
protected static final java.lang.String RESOURCE_REGISTRY_PATH_PARAM
protected static final java.lang.String PAYLOAD_SCHEMA_REGISTRY_PATH_PARAM
public static final java.lang.String APPLICATION_CONTEXT_ATTRIBUTE
protected ServiceLocator mServiceLocator
protected Client mInternalClient
protected JAXRSApplication mPredecessorApplication
protected JAXRSApplication mSuccessorApplication
protected RestResourceRegistry mRestResourceRegistry
protected atg.service.payloadschema.PayloadSchemaRegistry mPayloadSchemaRegistry
public JAXRSApplication(javax.servlet.ServletConfig pServletConfig)
pServletConfig
- the servlet config to provide our web.xml init param registry path.public JAXRSApplication getPredecessorApplication()
public void setPredecessorApplication(JAXRSApplication pPredecessorApplication)
pPredecessorApplication
- predecessor applicationpublic JAXRSApplication getSuccessorApplication()
public void setSuccessorApplication(JAXRSApplication pSuccessorApplication)
pSuccessorApplication
- successor applicationpublic boolean isLatest()
protected void setRestResourceRegistry(RestResourceRegistry pRestResourceRegistry)
pRestResourceRegistry
- the rest resource registry currently in contextpublic RestResourceRegistry getRestResourceRegistry()
protected void setPayloadSchemaRegistry(atg.service.payloadschema.PayloadSchemaRegistry pPayloadSchemaRegistry)
pPayloadSchemaRegistry
- the payload schema registry currently in contextpublic atg.service.payloadschema.PayloadSchemaRegistry getPayloadSchemaRegistry()
protected void initialize(javax.servlet.ServletConfig pServletConfig)
public java.util.Set<java.lang.Class<?>> getClasses()
public java.util.Set<java.lang.Object> getSingletons()
public ServiceLocator getServiceLocator()
public Client getInternalClient()
public java.lang.String getContextRoot()