|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Variant
org.restlet.resource.Representation
org.restlet.resource.StreamRepresentation
org.restlet.resource.OutputRepresentation
org.restlet.resource.XmlRepresentation
org.restlet.resource.SaxRepresentation
org.restlet.ext.atom.Service
public class Service
Represents an Atom introspection document.
Field Summary | |
---|---|
static java.lang.String |
APP_NAMESPACE
Atom Publishing Protocol namespace. |
Fields inherited from class org.restlet.resource.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
Service(Context context,
java.lang.String serviceUri)
Constructor. |
|
Service(java.lang.String serviceUri)
Constructor. |
|
Service(java.lang.String serviceUri,
Representation xmlService)
Constructor. |
|
Service(Uniform clientDispatcher)
Constructor. |
|
Service(Uniform clientDispatcher,
java.lang.String serviceUri)
Constructor. |
|
Service(Uniform clientDispatcher,
java.lang.String serviceUri,
Representation xmlService)
Constructor. |
Method Summary | |
---|---|
Status |
deleteResource(java.lang.String uri)
Deletes a resource. |
Uniform |
getClientDispatcher()
Returns the client HTTP dispatcher. |
Reference |
getReference()
Returns the hypertext reference. |
Representation |
getResource(java.lang.String uri)
Retrieves a resource representation. |
java.util.List<Workspace> |
getWorkspaces()
Returns the list of workspaces. |
void |
setClientDispatcher(Uniform clientDispatcher)
Sets the client HTTP dispatcher. |
void |
setReference(Reference ref)
Sets the hypertext reference. |
Status |
updateResource(java.lang.String uri,
Representation updatedRepresentation)
Updates a resource representation. |
void |
write(XmlWriter writer)
Writes the representation to a XML writer. |
Methods inherited from class org.restlet.resource.SaxRepresentation |
---|
evaluate, getSaxSource, parse, release, setSaxSource, write |
Methods inherited from class org.restlet.resource.XmlRepresentation |
---|
getBoolean, getDocumentBuilder, getDomSource, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getStreamSource, getText, isNamespaceAware, putNamespace, setNamespaceAware, validate, validate, validate, validate |
Methods inherited from class org.restlet.resource.OutputRepresentation |
---|
getStream |
Methods inherited from class org.restlet.resource.StreamRepresentation |
---|
getChannel, getReader, write, write |
Methods inherited from class org.restlet.resource.Representation |
---|
checkDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDownloadName, getExpirationDate, getModificationDate, getRange, getSize, getTag, getText, isAvailable, isDownloadable, isTransient, setAvailable, setDigest, setDownloadable, setDownloadName, setExpirationDate, setModificationDate, setRange, setSize, setTag, setTransient |
Methods inherited from class org.restlet.resource.Variant |
---|
getCharacterSet, getEncodings, getIdentifier, getLanguages, getMediaType, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setMediaType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String APP_NAMESPACE
Constructor Detail |
---|
public Service(Context context, java.lang.String serviceUri) throws java.io.IOException
context
- The context from which the client dispatcher will be
retrieved.serviceUri
- The service URI.
java.io.IOException
public Service(java.lang.String serviceUri) throws java.io.IOException
serviceUri
- The service URI.
java.io.IOException
public Service(java.lang.String serviceUri, Representation xmlService) throws java.io.IOException
serviceUri
- The service URI.xmlService
- The XML introspection document.
java.io.IOException
public Service(Uniform clientDispatcher)
clientDispatcher
- The client HTTP dispatcher.public Service(Uniform clientDispatcher, java.lang.String serviceUri) throws java.io.IOException
clientDispatcher
- The client HTTP dispatcher.serviceUri
- The service URI.
java.io.IOException
public Service(Uniform clientDispatcher, java.lang.String serviceUri, Representation xmlService) throws java.io.IOException
clientDispatcher
- The client HTTP dispatcher.serviceUri
- The service URI.xmlService
- The XML introspection document.
java.io.IOException
Method Detail |
---|
public Status deleteResource(java.lang.String uri)
uri
- The resource URI.
public Uniform getClientDispatcher()
public Reference getReference()
public Representation getResource(java.lang.String uri)
uri
- The resource URI.
public java.util.List<Workspace> getWorkspaces()
public void setClientDispatcher(Uniform clientDispatcher)
clientDispatcher
- The client HTTP dispatcher.public void setReference(Reference ref)
ref
- The hypertext reference.public Status updateResource(java.lang.String uri, Representation updatedRepresentation)
uri
- The resource URI.
public void write(XmlWriter writer) throws java.io.IOException
write
in class SaxRepresentation
writer
- The XML writer to write to.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |