public class WadlGeneratorImpl extends Object implements WadlGenerator
WadlGenerator.ExternalGrammarDefinition, WadlGenerator.Resolver
Constructor and Description |
---|
WadlGeneratorImpl() |
public String getRequiredJaxbContextPath()
WadlGenerator
WadlGenerator.setWadlGeneratorDelegate(WadlGenerator)
._delegate.getRequiredJaxbContextPath()
,
otherwise return the delegate's #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 WadlGenerator
getRequiredJaxbContextPath()
of the delegate or the
getRequiredJaxbContextPath() + ":" + ${yourContextPath}
.public void init()
WadlGenerator
this.delegate.init()
.init
in interface WadlGenerator
public void setWadlGeneratorDelegate(WadlGenerator delegate)
WadlGenerator
WadlGenerator.init()
or any setter method is invoked.setWadlGeneratorDelegate
in interface WadlGenerator
delegate
- the wadl generator to decoratepublic Resources createResources()
createResources
in interface WadlGenerator
public Application createApplication()
createApplication
in interface WadlGenerator
public Method createMethod(Resource r, ResourceMethod m)
createMethod
in interface WadlGenerator
public Representation createRequestRepresentation(Resource r, ResourceMethod m, MediaType mediaType)
createRequestRepresentation
in interface WadlGenerator
public Request createRequest(Resource r, ResourceMethod m)
createRequest
in interface WadlGenerator
public Param createParam(Resource r, ResourceMethod m, Parameter p)
createParam
in interface WadlGenerator
public Resource createResource(Resource resource, String path)
createResource
in interface WadlGenerator
public List<Response> createResponses(Resource r, ResourceMethod m)
createResponses
in interface WadlGenerator
public Representation createResponseRepresentation(Resource r, ResourceMethod m, MediaType mediaType)
public WadlGenerator.ExternalGrammarDefinition createExternalGrammar()
WadlGenerator
createExternalGrammar
in interface WadlGenerator
public void attachTypes(ApplicationDescription egd)
WadlGenerator
attachTypes
in interface WadlGenerator
egd
- The root description used to resolve these entriesCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.