|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.representation.CharacterRepresentation
org.restlet.representation.WriterRepresentation
org.restlet.ext.xml.XmlRepresentation
org.restlet.ext.xml.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.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.restlet.ext.xml.SaxRepresentation |
---|
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, write |
Methods inherited from class org.restlet.representation.WriterRepresentation |
---|
getReader |
Methods inherited from class org.restlet.representation.CharacterRepresentation |
---|
getChannel, getStream, write, write |
Methods inherited from class org.restlet.representation.Representation |
---|
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient |
Methods inherited from class org.restlet.representation.RepresentationInfo |
---|
getModificationDate, getTag, setModificationDate, setTag |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String APP_NAMESPACE
Constructor Detail |
---|
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.
IOException
public Service(Restlet clientDispatcher, String serviceUri, Representation xmlService) throws IOException
clientDispatcher
- The client HTTP dispatcher.serviceUri
- The service URI.xmlService
- The XML introspection document.
IOException
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(Representation xmlService) throws IOException
xmlService
- The XML introspection document.
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
Method Detail |
---|
public 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 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 |