Class BaseWadlGeneratorImpl
java.lang.Object
org.exoplatform.services.rest.wadl.BaseWadlGeneratorImpl
- All Implemented Interfaces:
WadlGenerator
Base implementation of
WadlGenerator. This implementation does not
provide doc and grammar extension of WADL.- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateParam(MethodParameter methodParameter) createRequestRepresentation(javax.ws.rs.core.MediaType mediaType) createResource(String path) createResponseRepresentation(javax.ws.rs.core.MediaType mediaType)
-
Constructor Details
-
BaseWadlGeneratorImpl
public BaseWadlGeneratorImpl()
-
-
Method Details
-
createApplication
- Specified by:
createApplicationin interfaceWadlGenerator- Returns:
Applicationinstance, it is root element in WADL
-
createResources
- Specified by:
createResourcesin interfaceWadlGenerator- Returns:
Resourcesinstance. Element resources in WADL document is container for the descriptions of resources provided by application
-
createResource
- Specified by:
createResourcein interfaceWadlGenerator- Parameters:
rd- SeeAbstractResourceDescriptor- Returns:
Resourcedescribes application resource, each resource identified by a URI
-
createResource
- Specified by:
createResourcein interfaceWadlGenerator- Parameters:
path- resource relative path- Returns:
Resourcedescribes application resource, each resource identified by a URI
-
createMethod
- Specified by:
createMethodin interfaceWadlGenerator- Parameters:
rmd- SeeResourceMethodDescriptor- Returns:
Methoddescribes the input to and output from an HTTP protocol method they may be applied to a resource
-
createRequest
- Specified by:
createRequestin interfaceWadlGenerator- Returns:
Requestdescribes the input to be included when applying an HTTP method to a resource- See Also:
-
createResponse
- Specified by:
createResponsein interfaceWadlGenerator- Returns:
Responsedescribes the output that result from performing an HTTP method on a resource- See Also:
-
createRequestRepresentation
- Specified by:
createRequestRepresentationin interfaceWadlGenerator- Parameters:
mediaType- one of media type that resource can consume- Returns:
RepresentationTypedescribes a representation of resource's state
-
createResponseRepresentation
- Specified by:
createResponseRepresentationin interfaceWadlGenerator- Parameters:
mediaType- one of media type that resource can produce- Returns:
RepresentationTypedescribes a representation of resource's state
-
createParam
- Specified by:
createParamin interfaceWadlGenerator- Parameters:
methodParameter- SeeMethodParameter- Returns:
Paramdescribes a parameterized component of its parent element resource, request, response- See Also:
-