|
||||||||||
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.wadl.WadlRepresentation
public class WadlRepresentation
Root of a WADL description document.
Field Summary | |
---|---|
static java.lang.String |
APP_NAMESPACE
Web Application Description Language namespace. |
Fields inherited from class org.restlet.resource.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
WadlRepresentation()
Constructor. |
|
WadlRepresentation(ApplicationInfo application)
Constructor. |
|
WadlRepresentation(Representation xmlRepresentation)
Constructor. |
|
WadlRepresentation(ResourceInfo resource)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
evaluate(java.lang.String expression,
javax.xml.namespace.QName returnType)
|
ApplicationInfo |
getApplication()
Returns the root element of the WADL document. |
Representation |
getHtmlRepresentation()
Returns an HTML representation. |
void |
setApplication(ApplicationInfo application)
Sets the root element of the WADL document. |
void |
write(XmlWriter writer)
|
Methods inherited from class org.restlet.resource.SaxRepresentation |
---|
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 WadlRepresentation()
public WadlRepresentation(ApplicationInfo application)
application
- The root element of the WADL document.public WadlRepresentation(Representation xmlRepresentation) throws java.io.IOException
xmlRepresentation
- The XML WADL document.
java.io.IOException
public WadlRepresentation(ResourceInfo resource)
resource
- The root element of the WADL document.Method Detail |
---|
public java.lang.Object evaluate(java.lang.String expression, javax.xml.namespace.QName returnType) throws java.lang.Exception
evaluate
in class SaxRepresentation
java.lang.Exception
public ApplicationInfo getApplication()
public Representation getHtmlRepresentation()
public void setApplication(ApplicationInfo application)
application
- The root element of the WADL document.public void write(XmlWriter writer) throws java.io.IOException
write
in class SaxRepresentation
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |