Interface WadlGenerator
- All Known Implementing Classes:
BaseWadlGeneratorImpl
public interface WadlGenerator
A WadGenerator creates structure that can be reflected to WADL
representation.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Method Summary
Modifier and TypeMethodDescriptioncreateParam(MethodParameter methodParameter) createRequestRepresentation(javax.ws.rs.core.MediaType mediaType) createResource(String path) createResponseRepresentation(javax.ws.rs.core.MediaType mediaType)
-
Method Details
-
createApplication
Application createApplication()- Returns:
Applicationinstance, it is root element in WADL
-
createResources
Resources createResources()- Returns:
Resourcesinstance. Element resources in WADL document is container for the descriptions of resources provided by application
-
createResource
- Parameters:
rd- SeeAbstractResourceDescriptor- Returns:
Resourcedescribes application resource, each resource identified by a URI
-
createResource
- Parameters:
path- resource relative path- Returns:
Resourcedescribes application resource, each resource identified by a URI
-
createMethod
- Parameters:
md- SeeResourceMethodDescriptor- Returns:
Methoddescribes the input to and output from an HTTP protocol method they may be applied to a resource
-
createRequest
Request createRequest()- Returns:
Requestdescribes the input to be included when applying an HTTP method to a resource- See Also:
-
createResponse
Response createResponse()- Returns:
Responsedescribes the output that result from performing an HTTP method on a resource- See Also:
-
createRequestRepresentation
- Parameters:
mediaType- one of media type that resource can consume- Returns:
RepresentationTypedescribes a representation of resource's state
-
createResponseRepresentation
- Parameters:
mediaType- one of media type that resource can produce- Returns:
RepresentationTypedescribes a representation of resource's state
-
createParam
- Parameters:
methodParameter- SeeMethodParameter- Returns:
Paramdescribes a parameterized component of its parent element resource, request, response- See Also:
-