de.twenty11.skysail.server.restlet
Class ResponseInfo

java.lang.Object
  extended by de.twenty11.skysail.server.restlet.DocumentedInfo
      extended by de.twenty11.skysail.server.restlet.ResponseInfo

public class ResponseInfo
extends DocumentedInfo


Constructor Summary
ResponseInfo()
          Constructor.
ResponseInfo(DocumentationInfo documentation)
          Constructor with a single documentation element.
ResponseInfo(List<DocumentationInfo> documentations)
          Constructor with a list of documentation elements.
ResponseInfo(String documentation)
          Constructor with a single documentation element.
 
Method Summary
 List<ParameterInfo> getParameters()
          Returns the list of parameters.
 List<RepresentationInfo> getRepresentations()
          Returns the list of representations
 List<org.restlet.data.Status> getStatuses()
          Returns the list of statuses associated with this response representation.
 void setParameters(List<ParameterInfo> parameters)
          Sets the list of parameters.
 void setRepresentations(List<RepresentationInfo> representations)
          Sets the list of representations
 void setStatuses(List<org.restlet.data.Status> statuses)
          Sets the list of statuses associated with this response representation.
 String toString()
           
 void updateNamespaces(Map<String,String> namespaces)
          Completes the given map of namespaces with the namespaces used in the documentation elements.
 
Methods inherited from class de.twenty11.skysail.server.restlet.DocumentedInfo
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseInfo

public ResponseInfo()
Constructor.


ResponseInfo

public ResponseInfo(DocumentationInfo documentation)
Constructor with a single documentation element.

Parameters:
documentation - A single documentation element.

ResponseInfo

public ResponseInfo(List<DocumentationInfo> documentations)
Constructor with a list of documentation elements.

Parameters:
documentations - The list of documentation elements.

ResponseInfo

public ResponseInfo(String documentation)
Constructor with a single documentation element.

Parameters:
documentation - A single documentation element.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getParameters

public List<ParameterInfo> getParameters()
Returns the list of parameters.

Returns:
The list of parameters.

getRepresentations

public List<RepresentationInfo> getRepresentations()
Returns the list of representations

Returns:
The list of representations

getStatuses

public List<org.restlet.data.Status> getStatuses()
Returns the list of statuses associated with this response representation.

Returns:
The list of statuses associated with this response representation.

setParameters

public void setParameters(List<ParameterInfo> parameters)
Sets the list of parameters.

Parameters:
parameters - The list of parameters.

setRepresentations

public void setRepresentations(List<RepresentationInfo> representations)
Sets the list of representations

Parameters:
representations - The list of representations

setStatuses

public void setStatuses(List<org.restlet.data.Status> statuses)
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(Map<String,String> namespaces)
Description copied from class: DocumentedInfo
Completes 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:
updateNamespaces in class DocumentedInfo
Parameters:
namespaces - The given map of namespaces to complete.


Copyright © 2011-2013. All Rights Reserved.