|
||||||||||
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 String |
APP_NAMESPACE
Atom Publishing Protocol namespace. |
Fields inherited from class org.restlet.resource.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
Service(Context context,
String serviceUri)
Constructor. |
|
Service(String serviceUri)
Constructor. |
|
Service(String serviceUri,
Representation xmlService)
Constructor. |
|
Service(Uniform clientDispatcher)
Constructor. |
|
Service(Uniform clientDispatcher,
String serviceUri)
Constructor. |
|
Service(Uniform clientDispatcher,
String serviceUri,
Representation xmlService)
Constructor. |
Method Summary | |
---|---|
Status |
deleteResource(String uri)
Deletes a resource. |
Uniform |
getClientDispatcher()
Returns the client HTTP dispatcher. |
Reference |
getReference()
Returns the hypertext reference. |
Representation |
getResource(String uri)
Retrieves a resource representation. |
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(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 String APP_NAMESPACE
Constructor Detail |
---|
public Service(Context context, String serviceUri) throws IOException
context
- The context from which the client dispatcher will be
retrieved.serviceUri
- The service URI.
IOException
public Service(String serviceUri) throws IOException
serviceUri
- The service URI.
IOException
public Service(String serviceUri, Representation xmlService) throws IOException
serviceUri
- The service URI.xmlService
- The XML introspection document.
IOException
public Service(Uniform clientDispatcher)
clientDispatcher
- The client HTTP dispatcher.public Service(Uniform clientDispatcher, String serviceUri) throws IOException
clientDispatcher
- The client HTTP dispatcher.serviceUri
- The service URI.
IOException
public Service(Uniform clientDispatcher, String serviceUri, Representation xmlService) throws IOException
clientDispatcher
- The client HTTP dispatcher.serviceUri
- The service URI.xmlService
- The XML introspection document.
IOException
Method Detail |
---|
public Status deleteResource(String uri)
uri
- The resource URI.
public Uniform getClientDispatcher()
public Reference getReference()
public Representation getResource(String uri)
uri
- The resource URI.
public 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(String uri, Representation updatedRepresentation)
uri
- The resource URI.
public void write(XmlWriter writer) throws IOException
write
in class SaxRepresentation
writer
- The XML writer to write to.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |