|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.UniformResource
org.restlet.resource.ServerResource
net.ubisoa.common.BaseResource
public class BaseResource
A specialization of the ServerResource
class that uses the output
query
parameter to handle content negotiation.
Currently, this class only understands the recommended output representation formats of UbiSOA
which are text/html
, text/xml
, application/atom+xml
, and
application/json
. The actual content negotiation is performed by setting the
Accept
request header to the content-type of the format specified in the
output
query parameter.
Example: A resource extending this class.
Constructor Summary | |
---|---|
BaseResource()
|
Method Summary | |
---|---|
protected void |
doInit()
Initializes this resource by setting the Accept request header to the content-type
specified in the output query parameter. |
Methods inherited from class org.restlet.resource.ServerResource |
---|
abort, commit, delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, get, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, handle, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseResource()
Method Detail |
---|
protected void doInit() throws ResourceException
Accept
request header to the content-type
specified in the output
query parameter. The default representation is
text/html
.
doInit
in class UniformResource
ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |