|
||||||||||
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.wadl.WadlRepresentation
public class WadlRepresentation
Root of a WADL description document. For the getHtmlRepresentation()
method to work properly, you will certainly have to update your classpath
with a recent version of Apache
Xalan XSLT engine (version 2.7.1 has been successfully tested). This is
due to the XSLT
stylesheet bundled which relies on EXSLT features.
Field Summary | |
---|---|
static String |
APP_NAMESPACE
Web Application Description Language namespace. |
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
WadlRepresentation()
Constructor. |
|
WadlRepresentation(ApplicationInfo application)
Constructor. |
|
WadlRepresentation(Representation xmlRepresentation)
Constructor. |
|
WadlRepresentation(ResourceInfo resource)
Constructor. |
Method Summary | |
---|---|
Object |
evaluate(String expression,
QName returnType)
Evaluates an XPath expression and returns the result as in the given return type. |
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)
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 WadlRepresentation()
public WadlRepresentation(ApplicationInfo application)
application
- The root element of the WADL document.public WadlRepresentation(Representation xmlRepresentation) throws IOException
xmlRepresentation
- The XML WADL document.
IOException
public WadlRepresentation(ResourceInfo resource)
resource
- The root element of the WADL document.Method Detail |
---|
public Object evaluate(String expression, QName returnType) throws Exception
XmlRepresentation
evaluate
in class XmlRepresentation
returnType
- The qualified name of the return type.
Exception
XPathException
,
XPathConstants
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 IOException
SaxRepresentation
SaxRepresentation.parse(ContentHandler)
using the XmlWriter
parameter as the content handler. This behavior is intended to be
overridden.
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 |