Class ResponseDescriptor
java.lang.Object
org.codehaus.mojo.servicedocgen.descriptor.AbstractDescriptor
org.codehaus.mojo.servicedocgen.descriptor.ResponseDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor of a response to a operation.- Author:
- hohwille
- See Also:
-
Field Summary
Fields inherited from interface Descriptor
HTTP_METHOD_DELETE, HTTP_METHOD_GET, HTTP_METHOD_HEAD, HTTP_METHOD_OPTIONS, HTTP_METHOD_PATCH, HTTP_METHOD_POST, HTTP_METHOD_PUT, LOCATION_BODY, LOCATION_COOKIE, LOCATION_FORM_DATA, LOCATION_HEADER, LOCATION_PATH, LOCATION_QUERY, SCHEME_HTTP, SCHEME_HTTPS, SCHEME_WS, SCHEME_WSS, STATUS_CODE_BAD_REQUEST, STATUS_CODE_CONFLICT, STATUS_CODE_FORBIDDEN, STATUS_CODE_INTERNAL_SERVER_ERROR, STATUS_CODE_NO_CONTENT, STATUS_CODE_SUCCESS, STATUS_CODE_UNAUTHORIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDescription(String description) voidsetExample(String example) voidsetJavaElement(JElement javaElement) voidsetJavaScriptType(String javaScriptType) voidvoidsetStatusCode(String statusCode) toString()Methods inherited from class AbstractDescriptor
notNull
-
Constructor Details
-
ResponseDescriptor
public ResponseDescriptor()
-
-
Method Details
-
getStatusCode
- Returns:
- the statusCode
-
setStatusCode
- Parameters:
statusCode- is the statusCode to set
-
getReason
- Returns:
- the reason
-
setReason
- Parameters:
reason- is the reason to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- is the description to set
-
getExample
- Returns:
- the example
-
setExample
- Parameters:
example- is the example to set
-
getJavaScriptType
- Returns:
- the javaScriptType
-
setJavaScriptType
- Parameters:
javaScriptType- is the javaScriptType to set
-
getJavaElement
- Returns:
- the javaElement
-
setJavaElement
- Parameters:
javaElement- is the javaElement to set
-
toString
-