|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.wadl.DocumentedInfo
org.restlet.ext.wadl.ResponseInfo
public class ResponseInfo
Describes the properties of a response associated to a parent method.
Constructor Summary | |
---|---|
ResponseInfo()
Constructor. |
|
ResponseInfo(DocumentationInfo documentation)
Constructor with a single documentation element. |
|
ResponseInfo(java.util.List<DocumentationInfo> documentations)
Constructor with a list of documentation elements. |
|
ResponseInfo(java.lang.String documentation)
Constructor with a single documentation element. |
Method Summary | |
---|---|
java.util.List<FaultInfo> |
getFaults()
Returns the list of faults (representations that denote an error condition). |
java.util.List<ParameterInfo> |
getParameters()
Returns the list of parameters. |
java.util.List<RepresentationInfo> |
getRepresentations()
Returns the list of representations |
void |
setFaults(java.util.List<FaultInfo> faults)
Sets the list of faults (representations that denote an error condition). |
void |
setParameters(java.util.List<ParameterInfo> parameters)
Sets the list of parameters. |
void |
setRepresentations(java.util.List<RepresentationInfo> representations)
Sets the list of representations |
void |
updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Completes the given map of namespaces with the namespaces used in the documentation elements. |
void |
writeElement(XmlWriter writer)
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseInfo()
public ResponseInfo(DocumentationInfo documentation)
documentation
- A single documentation element.public ResponseInfo(java.util.List<DocumentationInfo> documentations)
documentations
- The list of documentation elements.public ResponseInfo(java.lang.String documentation)
documentation
- A single documentation element.Method Detail |
---|
public java.util.List<FaultInfo> getFaults()
public java.util.List<ParameterInfo> getParameters()
public java.util.List<RepresentationInfo> getRepresentations()
public void setFaults(java.util.List<FaultInfo> faults)
faults
- The list of faults (representations that denote an error
condition).public void setParameters(java.util.List<ParameterInfo> parameters)
parameters
- The list of parameters.public void setRepresentations(java.util.List<RepresentationInfo> representations)
representations
- The list of representationspublic void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |