public class Service extends SaxRepresentation
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_NAMESPACE
Atom Publishing Protocol namespace.
|
UNKNOWN_SIZE| Constructor and Description |
|---|
Service(Client clientDispatcher)
Constructor.
|
Service(Client clientDispatcher,
String serviceUri)
Constructor.
|
Service(Context context,
String serviceUri)
Constructor.
|
Service(Representation xmlService)
Constructor.
|
Service(Restlet clientDispatcher,
String serviceUri,
Representation xmlService)
Constructor.
|
Service(String serviceUri)
Constructor.
|
Service(String serviceUri,
Representation xmlService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
deleteResource(String uri)
Deletes a resource.
|
Reference |
getBaseReference()
Returns the base reference used to resolve relative references found
within the scope of the xml:base attribute.
|
Restlet |
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 |
setBaseReference(Reference baseReference)
Sets the base reference used to resolve relative references found within
the scope of the xml:base attribute.
|
void |
setClientDispatcher(Client 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.
|
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, writeevaluate, getBoolean, getDocument, getDocumentBuilder, getDomSource, getEntityResolver, getErrorHandler, getNamespaces, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getSchema, getStreamSource, getText, isCoalescing, isExpandingEntityRefs, isIgnoringComments, isIgnoringExtraWhitespaces, isNamespaceAware, isValidatingDtd, isXIncludeAware, setCoalescing, setEntityResolver, setErrorHandler, setExpandingEntityRefs, setIgnoringComments, setIgnoringExtraWhitespaces, setNamespaceAware, setNamespaces, setSchema, setSchema, setValidatingDtd, setXIncludeAware, validate, validate, validate, validategetReadergetChannel, getStream, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic static final String APP_NAMESPACE
public Service(Client clientDispatcher)
clientDispatcher - The client HTTP dispatcher.public Service(Client clientDispatcher, String serviceUri) throws IOException
clientDispatcher - The client HTTP dispatcher.serviceUri - The service URI.IOExceptionpublic Service(Restlet clientDispatcher, String serviceUri, Representation xmlService) throws IOException
clientDispatcher - The client HTTP dispatcher.serviceUri - The service URI.xmlService - The XML introspection document.IOExceptionpublic Service(Context context, String serviceUri) throws IOException
context - The context from which the client dispatcher will be
retrieved.serviceUri - The service URI.IOExceptionpublic Service(Representation xmlService) throws IOException
xmlService - The XML introspection document.IOExceptionpublic Service(String serviceUri) throws IOException
serviceUri - The service URI.IOExceptionpublic Service(String serviceUri, Representation xmlService) throws IOException
serviceUri - The service URI.xmlService - The XML introspection document.IOExceptionpublic Status deleteResource(String uri)
uri - The resource URI.public Reference getBaseReference()
public Restlet getClientDispatcher()
public Reference getReference()
public Representation getResource(String uri)
uri - The resource URI.public List<Workspace> getWorkspaces()
public void setBaseReference(Reference baseReference)
baseReference - The base reference used to resolve relative references found
within the scope of the xml:base attribute.public void setClientDispatcher(Client 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 SaxRepresentationwriter - The XML writer to write to.IOExceptionCopyright © 2005–2015. All rights reserved.