public interface WadlGenerator
| Modifier and Type | Interface and Description |
|---|---|
static class |
WadlGenerator.ExternalGrammarDefinition
And internal storage object to store the grammar definitions and
any type resolvers that are created along the way.
|
static interface |
WadlGenerator.Resolver
Call back interface that the created external grammar can use
to allow other parts of the code to attach the correct grammar information.
|
void setWadlGeneratorDelegate(WadlGenerator delegate)
init() or any setter method is invoked.delegate - the wadl generator to decoratevoid init() throws Exception
this.delegate.init().String getRequiredJaxbContextPath()
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() of the delegate or the
getRequiredJaxbContextPath() + ":" + ${yourContextPath}.Application createApplication()
Resources createResources()
Method createMethod(Resource r, ResourceMethod m)
Request createRequest(Resource r, ResourceMethod m)
Representation createRequestRepresentation(Resource r, ResourceMethod m, MediaType mediaType)
List<Response> createResponses(Resource r, ResourceMethod m)
Param createParam(Resource r, ResourceMethod m, Parameter p)
WadlGenerator.ExternalGrammarDefinition createExternalGrammar()
void attachTypes(org.glassfish.jersey.server.wadl.internal.ApplicationDescription description)
description - The root description used to resolve these entriesCopyright © 2007-2019, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.