Package org.restlet.ext.wadl
Class WadlRepresentation
-
- All Implemented Interfaces:
javax.xml.namespace.NamespaceContext
@Deprecated public class WadlRepresentation extends SaxRepresentation
Deprecated.Will be removed in next major release.Root of a WADL description document. For thegetHtmlRepresentation()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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classWadlRepresentation.ContentReaderDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPP_NAMESPACEDeprecated.Web Application Description Language namespace.private ApplicationInfoapplicationDeprecated.The root element of the WADL document.-
Fields inherited from class org.restlet.ext.xml.SaxRepresentation
XML_SECURE_PROCESSING
-
Fields inherited from class org.restlet.ext.xml.XmlRepresentation
XML_EXPANDING_ENTITY_REFS, XML_VALIDATING_DTD
-
Fields inherited from class org.restlet.representation.Representation
UNKNOWN_SIZE
-
-
Constructor Summary
Constructors Constructor Description WadlRepresentation()Deprecated.Constructor.WadlRepresentation(ApplicationInfo application)Deprecated.Constructor.WadlRepresentation(ResourceInfo resource)Deprecated.Constructor.WadlRepresentation(Representation xmlRepresentation)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApplicationInfogetApplication()Deprecated.Returns the root element of the WADL document.RepresentationgetHtmlRepresentation()Deprecated.Returns an HTML representation.voidsetApplication(ApplicationInfo application)Deprecated.Sets the root element of the WADL document.voidwrite(XmlWriter writer)Deprecated.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.ext.xml.XmlRepresentation
getBoolean, getDocument, getDocumentBuilder, getDomSource, getEntityResolver, getErrorHandler, getNamespaces, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getSchema, getStreamSource, getText, getTextContent, isCoalescing, isExpandingEntityRefs, isIgnoringComments, isIgnoringExtraWhitespaces, isNamespaceAware, isValidatingDtd, isXIncludeAware, setCoalescing, setEntityResolver, setErrorHandler, setExpandingEntityRefs, setIgnoringComments, setIgnoringExtraWhitespaces, setNamespaceAware, setNamespaces, setSchema, setSchema, setValidatingDtd, setXIncludeAware, validate, validate, validate, validate
-
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, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
-
-
-
-
Field Detail
-
APP_NAMESPACE
public static final java.lang.String APP_NAMESPACE
Deprecated.Web Application Description Language namespace.- See Also:
- Constant Field Values
-
application
private ApplicationInfo application
Deprecated.The root element of the WADL document.
-
-
Constructor Detail
-
WadlRepresentation
public WadlRepresentation()
Deprecated.Constructor.
-
WadlRepresentation
public WadlRepresentation(ApplicationInfo application)
Deprecated.Constructor.- Parameters:
application- The root element of the WADL document.
-
WadlRepresentation
public WadlRepresentation(Representation xmlRepresentation) throws java.io.IOException
Deprecated.Constructor.- Parameters:
xmlRepresentation- The XML WADL document.- Throws:
java.io.IOException
-
WadlRepresentation
public WadlRepresentation(ResourceInfo resource)
Deprecated.Constructor. The title of the resource, that is to say the title of its first documentation tag is transfered to the title of the first documentation tag of the main application tag.- Parameters:
resource- The root element of the WADL document.
-
-
Method Detail
-
getApplication
public ApplicationInfo getApplication()
Deprecated.Returns the root element of the WADL document.- Returns:
- The root element of the WADL document.
-
getHtmlRepresentation
public Representation getHtmlRepresentation()
Deprecated.Returns an HTML representation. Note that the internal XSLT stylesheet used comes from Mark Nottingham. This stylesheet requires advanced XSLT features, including EXSLT extensions. Usage of a recent version of Xalan-J is suggested. It has been tested successfully with Xalan-J 2.7.1.- Returns:
- An HTML representation.
-
setApplication
public void setApplication(ApplicationInfo application)
Deprecated.Sets the root element of the WADL document.- Parameters:
application- The root element of the WADL document.
-
write
public void write(XmlWriter writer) throws java.io.IOException
Deprecated.Description copied from class:SaxRepresentationWrites the representation to a XML writer. The default implementation callsSaxRepresentation.parse(ContentHandler)using theXmlWriterparameter as the content handler. This behavior is intended to be overridden.- Overrides:
writein classSaxRepresentation- Parameters:
writer- The XML writer to write to.- Throws:
java.io.IOException
-
-