Package org.restlet.ext.wadl
Class ResponseInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.ResponseInfo
-
@Deprecated public class ResponseInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Describes the properties of a response associated to a parent method.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ParameterInfo>parametersDeprecated.List of parameters.private java.util.List<RepresentationInfo>representationsDeprecated.List of representations.private java.util.List<Status>statusesDeprecated.List of statuses associated with this response representation.
-
Constructor Summary
Constructors Constructor Description ResponseInfo()Deprecated.Constructor.ResponseInfo(java.lang.String documentation)Deprecated.Constructor with a single documentation element.ResponseInfo(java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.ResponseInfo(DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<ParameterInfo>getParameters()Deprecated.Returns the list of parameters.java.util.List<RepresentationInfo>getRepresentations()Deprecated.Returns the list of representationsjava.util.List<Status>getStatuses()Deprecated.Returns the list of statuses associated with this response representation.voidsetParameters(java.util.List<ParameterInfo> parameters)Deprecated.Sets the list of parameters.voidsetRepresentations(java.util.List<RepresentationInfo> representations)Deprecated.Sets the list of representationsvoidsetStatuses(java.util.List<Status> statuses)Deprecated.Sets the list of statuses associated with this response representation.voidupdateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)Deprecated.Completes the given map of namespaces with the namespaces used in the documentation elements.voidwriteElement(XmlWriter writer)Deprecated.Writes the current object as an XML element using the given SAX writer.-
Methods inherited from class org.restlet.ext.wadl.DocumentedInfo
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
-
-
-
-
Field Detail
-
parameters
private java.util.List<ParameterInfo> parameters
Deprecated.List of parameters.
-
representations
private java.util.List<RepresentationInfo> representations
Deprecated.List of representations.
-
statuses
private java.util.List<Status> statuses
Deprecated.List of statuses associated with this response representation.
-
-
Constructor Detail
-
ResponseInfo
public ResponseInfo()
Deprecated.Constructor.
-
ResponseInfo
public ResponseInfo(DocumentationInfo documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
ResponseInfo
public ResponseInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.Constructor with a list of documentation elements.- Parameters:
documentations- The list of documentation elements.
-
ResponseInfo
public ResponseInfo(java.lang.String documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
-
Method Detail
-
getParameters
public java.util.List<ParameterInfo> getParameters()
Deprecated.Returns the list of parameters.- Returns:
- The list of parameters.
-
getRepresentations
public java.util.List<RepresentationInfo> getRepresentations()
Deprecated.Returns the list of representations- Returns:
- The list of representations
-
getStatuses
public java.util.List<Status> getStatuses()
Deprecated.Returns the list of statuses associated with this response representation.- Returns:
- The list of statuses associated with this response representation.
-
setParameters
public void setParameters(java.util.List<ParameterInfo> parameters)
Deprecated.Sets the list of parameters.- Parameters:
parameters- The list of parameters.
-
setRepresentations
public void setRepresentations(java.util.List<RepresentationInfo> representations)
Deprecated.Sets the list of representations- Parameters:
representations- The list of representations
-
setStatuses
public void setStatuses(java.util.List<Status> statuses)
Deprecated.Sets the list of statuses associated with this response representation.- Parameters:
statuses- The list of statuses associated with this response representation.
-
updateNamespaces
public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Deprecated.Description copied from class:DocumentedInfoCompletes the given map of namespaces with the namespaces used in the documentation elements. The key is the URI of the namespace and the value, the prefix.- Specified by:
updateNamespacesin classDocumentedInfo- Parameters:
namespaces- The given map of namespaces to complete.
-
writeElement
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
Deprecated.Writes the current object as an XML element using the given SAX writer.- Parameters:
writer- The SAX writer.- Throws:
org.xml.sax.SAXException
-
-