de.twenty11.skysail.server.restlet
Class RequestInfo

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

public class RequestInfo
extends DocumentedInfo


Constructor Summary
RequestInfo()
          Constructor.
RequestInfo(DocumentationInfo documentation)
          Constructor with a single documentation element.
RequestInfo(List<DocumentationInfo> documentations)
          Constructor with a list of documentation elements.
RequestInfo(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 supported input representations.
 void setParameters(List<ParameterInfo> parameters)
          Sets the list of parameters.
 String toString()
          List of supported input representations.
 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

RequestInfo

public RequestInfo()
Constructor.


RequestInfo

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

Parameters:
documentation - A single documentation element.

RequestInfo

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

Parameters:
documentations - The list of documentation elements.

RequestInfo

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

Parameters:
documentation - A single documentation element.
Method Detail

toString

public String toString()
List of supported input representations.

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 supported input representations.

Returns:
The list of supported input representations.

setParameters

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

Parameters:
parameters - The list of parameters.

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.