public class WadlRepresentation extends SaxRepresentation
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.| Modifier and Type | Field and Description |
|---|---|
static String |
APP_NAMESPACE
Web Application Description Language namespace.
|
UNKNOWN_SIZE| Constructor and Description |
|---|
WadlRepresentation()
Constructor.
|
WadlRepresentation(ApplicationInfo application)
Constructor.
|
WadlRepresentation(Representation xmlRepresentation)
Constructor.
|
WadlRepresentation(ResourceInfo resource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic static final String APP_NAMESPACE
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.IOExceptionpublic WadlRepresentation(ResourceInfo resource)
resource - The root element of the WADL document.public Object evaluate(String expression, QName returnType) throws Exception
XmlRepresentationevaluate in class XmlRepresentationreturnType - The qualified name of the return type.ExceptionXPathException,
XPathConstantspublic 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
SaxRepresentationSaxRepresentation.parse(ContentHandler) using the XmlWriter
parameter as the content handler. This behavior is intended to be
overridden.write in class SaxRepresentationwriter - The XML writer to write to.IOExceptionCopyright © 2005–2015. All rights reserved.