public class Service extends SaxRepresentation
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APP_NAMESPACE
Atom Publishing Protocol namespace.
|
XML_SECURE_PROCESSINGXML_EXPANDING_ENTITY_REFS, XML_VALIDATING_DTDUNKNOWN_SIZE| Constructor and Description |
|---|
Service(Client clientDispatcher)
Constructor.
|
Service(Client clientDispatcher,
java.lang.String serviceUri)
Constructor.
|
Service(Context context,
java.lang.String serviceUri)
Constructor.
|
Service(Representation xmlService)
Constructor.
|
Service(Restlet clientDispatcher,
java.lang.String serviceUri,
Representation xmlService)
Constructor.
|
Service(java.lang.String serviceUri)
Constructor.
|
Service(java.lang.String serviceUri,
Representation xmlService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
deleteResource(java.lang.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(java.lang.String uri)
Retrieves a resource representation.
|
java.util.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(java.lang.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, writegetBoolean, 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, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic static final java.lang.String APP_NAMESPACE
public Service(Client clientDispatcher)
clientDispatcher - The client HTTP dispatcher.public Service(Client clientDispatcher, java.lang.String serviceUri) throws java.io.IOException
clientDispatcher - The client HTTP dispatcher.serviceUri - The service URI.java.io.IOExceptionpublic 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.IOExceptionpublic Service(Representation xmlService) throws java.io.IOException
xmlService - The XML introspection document.java.io.IOExceptionpublic Service(Restlet 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.IOExceptionpublic Service(java.lang.String serviceUri)
throws java.io.IOException
serviceUri - The service URI.java.io.IOExceptionpublic Service(java.lang.String serviceUri,
Representation xmlService)
throws java.io.IOException
serviceUri - The service URI.xmlService - The XML introspection document.java.io.IOExceptionpublic Status deleteResource(java.lang.String uri)
uri - The resource URI.public Reference getBaseReference()
public Restlet getClientDispatcher()
public Reference getReference()
public Representation getResource(java.lang.String uri)
uri - The resource URI.public java.util.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(java.lang.String uri, Representation updatedRepresentation)
uri - The resource URI.public void write(XmlWriter writer) throws java.io.IOException
write in class SaxRepresentationwriter - The XML writer to write to.java.io.IOExceptionCopyright © 2005-2020 Restlet.