|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
public abstract class SitoolsResource
Standard representation of a response (XML / JSON) TODO standard HTML response with a FreeMarker template ...
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_MEDIATYPE
Default Mediatype in representations |
Constructor Summary | |
---|---|
SitoolsResource()
|
Method Summary | |
---|---|
void |
addStandardGetRequestInfo(org.restlet.ext.wadl.MethodInfo info)
Configure the information to add a standard Sitools2 request |
void |
addStandardInternalServerErrorInfo(org.restlet.ext.wadl.MethodInfo info)
Method to give WADL information for Internal server error response |
void |
addStandardNotificationInfo(org.restlet.ext.wadl.MethodInfo info)
Method to give WADL information for notification API |
void |
addStandardObjectResponseInfo(org.restlet.ext.wadl.MethodInfo info)
Configure the information to add a standard Sitools2 response |
void |
addStandardPostOrPutRequestInfo(org.restlet.ext.wadl.MethodInfo info)
Configure the information to add a standard Sitools2 request for PUT or POST |
void |
addStandardResourceCollectionFilterInfo(org.restlet.ext.wadl.MethodInfo info)
Add the parameters used in the ResourceCollectionFilter |
void |
addStandardResponseInfo(org.restlet.ext.wadl.MethodInfo info)
Configure the information to add a standard Sitools2 response |
void |
addStandardSimpleResponseInfo(org.restlet.ext.wadl.MethodInfo info)
Configure the information to add a standard Sitools2 response |
void |
configure(com.thoughtworks.xstream.XStream xstream,
Response response)
Configure the XStream |
Notification |
getNotificationObject(org.restlet.representation.Representation representation)
Get Notification object |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.data.MediaType media)
Get a representation of the object |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.representation.Variant variant)
Gets representation according to the specified Variant if present. |
SitoolsSettings |
getSettings()
Get the SitoolsSettings for the application or the defaut settings if null. |
SitoolsApplication |
getSitoolsApplication()
Get the Sitools application that handles this resource |
java.lang.String |
getSitoolsSetting(java.lang.String property)
Get the Sitools property |
void |
trace(java.util.logging.Level level,
java.lang.String message)
|
void |
trace(java.util.logging.Level level,
java.lang.String message,
java.lang.Throwable throwable)
|
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
---|
getMediaType, sitoolsDescribe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_MEDIATYPE
Constructor Detail |
---|
public SitoolsResource()
Method Detail |
---|
public org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
response
- the response to treatmedia
- the media to use
public void configure(com.thoughtworks.xstream.XStream xstream, Response response)
xstream
- the XStream to treatresponse
- the response usedpublic org.restlet.representation.Representation getRepresentation(Response response, org.restlet.representation.Variant variant)
response
- the response to usevariant
- the variant to use
public Notification getNotificationObject(org.restlet.representation.Representation representation)
representation
- Notification Representation
public void addStandardResponseInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final void addStandardGetRequestInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final void addStandardPostOrPutRequestInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final void addStandardSimpleResponseInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final void addStandardObjectResponseInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final void addStandardNotificationInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final void addStandardInternalServerErrorInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final void addStandardResourceCollectionFilterInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the WADL method informationpublic final SitoolsApplication getSitoolsApplication()
public final java.lang.String getSitoolsSetting(java.lang.String property)
property
- the property to reach
public final SitoolsSettings getSettings()
public void trace(java.util.logging.Level level, java.lang.String message, java.lang.Throwable throwable)
public void trace(java.util.logging.Level level, java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |