Package org.restlet.ext.wadl
Class MethodInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.MethodInfo
-
@Deprecated public class MethodInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Describes the expected requests and responses of a resource method.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringidentifierDeprecated.Identifier for the method.private MethodnameDeprecated.Name of the method.private RequestInforequestDeprecated.Describes the input to the method.private java.util.List<ResponseInfo>responsesDeprecated.Describes the output of the method.private ReferencetargetRefDeprecated.Reference to a method definition element.
-
Constructor Summary
Constructors Constructor Description MethodInfo()Deprecated.Constructor.MethodInfo(java.lang.String documentation)Deprecated.Constructor with a single documentation element.MethodInfo(java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.MethodInfo(DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voiddescribeAnnotations(MethodInfo info, ServerResource resource)Deprecated.Automatically describe a method by discovering the resource's annotations.java.lang.StringgetIdentifier()Deprecated.Returns the identifier for the method.MethodgetName()Deprecated.Returns the name of the method.RequestInfogetRequest()Deprecated.Returns the input to the method.ResponseInfogetResponse()Deprecated.Returns the last added response of the method.java.util.List<ResponseInfo>getResponses()Deprecated.Returns the output of the method.ReferencegetTargetRef()Deprecated.Returns the reference to a method definition element.voidsetIdentifier(java.lang.String identifier)Deprecated.Sets the identifier for the method.voidsetName(Method name)Deprecated.Sets the name of the method.voidsetRequest(RequestInfo request)Deprecated.Sets the input to the method.voidsetResponses(java.util.List<ResponseInfo> responses)Deprecated.Sets the output of the method.voidsetTargetRef(Reference targetRef)Deprecated.Sets the reference to a method definition element.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
-
identifier
private java.lang.String identifier
Deprecated.Identifier for the method.
-
name
private Method name
Deprecated.Name of the method.
-
request
private RequestInfo request
Deprecated.Describes the input to the method.
-
responses
private java.util.List<ResponseInfo> responses
Deprecated.Describes the output of the method.
-
targetRef
private Reference targetRef
Deprecated.Reference to a method definition element.
-
-
Constructor Detail
-
MethodInfo
public MethodInfo()
Deprecated.Constructor.
-
MethodInfo
public MethodInfo(DocumentationInfo documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
MethodInfo
public MethodInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.Constructor with a list of documentation elements.- Parameters:
documentations- The list of documentation elements.
-
MethodInfo
public MethodInfo(java.lang.String documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
-
Method Detail
-
describeAnnotations
public static void describeAnnotations(MethodInfo info, ServerResource resource)
Deprecated.Automatically describe a method by discovering the resource's annotations.- Parameters:
info- The method description to update.resource- The server resource to describe.
-
getIdentifier
public java.lang.String getIdentifier()
Deprecated.Returns the identifier for the method.- Returns:
- The identifier for the method.
-
getName
public Method getName()
Deprecated.Returns the name of the method.- Returns:
- The name of the method.
-
getRequest
public RequestInfo getRequest()
Deprecated.Returns the input to the method.- Returns:
- The input to the method.
-
getResponse
public ResponseInfo getResponse()
Deprecated.Returns the last added response of the method.- Returns:
- The last added response of the method.
-
getResponses
public java.util.List<ResponseInfo> getResponses()
Deprecated.Returns the output of the method.- Returns:
- The output of the method.
-
getTargetRef
public Reference getTargetRef()
Deprecated.Returns the reference to a method definition element.- Returns:
- The reference to a method definition element.
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Deprecated.Sets the identifier for the method.- Parameters:
identifier- The identifier for the method.
-
setName
public void setName(Method name)
Deprecated.Sets the name of the method.- Parameters:
name- The name of the method.
-
setRequest
public void setRequest(RequestInfo request)
Deprecated.Sets the input to the method.- Parameters:
request- The input to the method.
-
setResponses
public void setResponses(java.util.List<ResponseInfo> responses)
Deprecated.Sets the output of the method.- Parameters:
responses- The output of the method.
-
setTargetRef
public void setTargetRef(Reference targetRef)
Deprecated.Sets the reference to a method definition element.- Parameters:
targetRef- The reference to a method definition element.
-
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
-
-