public class WadlGeneratorImpl extends java.lang.Object implements WadlGenerator
| Constructor and Description |
|---|
WadlGeneratorImpl() |
| Modifier and Type | Method and Description |
|---|---|
Application |
createApplication() |
Method |
createMethod(AbstractResource r,
AbstractResourceMethod m) |
Param |
createParam(AbstractResource r,
AbstractMethod m,
Parameter p) |
Request |
createRequest(AbstractResource r,
AbstractResourceMethod m) |
RepresentationType |
createRequestRepresentation(AbstractResource r,
AbstractResourceMethod m,
MediaType mediaType) |
Resource |
createResource(AbstractResource r,
java.lang.String path) |
Resources |
createResources() |
Response |
createResponse(AbstractResource r,
AbstractResourceMethod m) |
RepresentationType |
createResponseRepresentation(AbstractResource r,
AbstractResourceMethod m,
MediaType mediaType) |
java.lang.String |
getRequiredJaxbContextPath()
The jaxb context path that is used when the generated wadl application is marshalled
to a file.
This method is used in a decorator like manner. The result return the path (or a colon-separated list of package names) containing jaxb-beans that are added to wadl elements by this WadlGenerator, additionally to the context path of the decorated WadlGenerator (set by WadlGenerator.setWadlGeneratorDelegate(WadlGenerator).If you do not use custom jaxb beans, then simply return _delegate.getRequiredJaxbContextPath(),
otherwise return the delegate's WadlGenerator.getRequiredJaxbContextPath() together with
your required context path (separated by a colon): |
void |
init()
Invoked before all methods related to wadl-building are invoked.
|
void |
setWadlGeneratorDelegate(WadlGenerator delegate)
Sets the delegate that is decorated by this wadl generator.
|
public java.lang.String getRequiredJaxbContextPath()
WadlGeneratorWadlGenerator.setWadlGeneratorDelegate(WadlGenerator)._delegate.getRequiredJaxbContextPath(),
otherwise return the delegate's WadlGenerator.getRequiredJaxbContextPath() together with
your required context path (separated by a colon):_delegate.getRequiredJaxbContextPath() == null
? ${yourContextPath}
: _delegate.getRequiredJaxbContextPath() + ":" + ${yourContextPath};
If you add the path for your custom jaxb beans, don't forget to add an
ObjectFactory (annotated with XmlRegistry) to this package.getRequiredJaxbContextPath in interface WadlGeneratorWadlGenerator.getRequiredJaxbContextPath() of the delegate or the
WadlGenerator.getRequiredJaxbContextPath() + ":" + ${yourContextPath}.public void init()
throws java.lang.Exception
WadlGeneratorthis.delegate.init().init in interface WadlGeneratorjava.lang.Exceptionpublic void setWadlGeneratorDelegate(WadlGenerator delegate)
WadlGeneratorWadlGenerator.init() or any setter method is invoked.setWadlGeneratorDelegate in interface WadlGeneratordelegate - the wadl generator to decoratepublic Resources createResources()
createResources in interface WadlGeneratorpublic Application createApplication()
createApplication in interface WadlGeneratorpublic Method createMethod(AbstractResource r, AbstractResourceMethod m)
createMethod in interface WadlGeneratorpublic RepresentationType createRequestRepresentation(AbstractResource r, AbstractResourceMethod m, MediaType mediaType)
createRequestRepresentation in interface WadlGeneratorpublic Request createRequest(AbstractResource r, AbstractResourceMethod m)
createRequest in interface WadlGeneratorpublic Param createParam(AbstractResource r, AbstractMethod m, Parameter p)
createParam in interface WadlGeneratorpublic Resource createResource(AbstractResource r, java.lang.String path)
createResource in interface WadlGeneratorpublic Response createResponse(AbstractResource r, AbstractResourceMethod m)
createResponse in interface WadlGeneratorpublic RepresentationType createResponseRepresentation(AbstractResource r, AbstractResourceMethod m, MediaType mediaType)
Copyright © 2015 Oracle Corporation. All Rights Reserved.