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.
|
Modifier and Type | Method and Description |
---|---|
void |
attachTypes(org.glassfish.jersey.server.wadl.internal.ApplicationDescription description)
Process the elements in the WADL definition to attach schema types
as required.
|
Application |
createApplication() |
WadlGenerator.ExternalGrammarDefinition |
createExternalGrammar()
Perform any post create functions such as generating grammars.
|
Method |
createMethod(Resource r,
ResourceMethod m) |
Param |
createParam(Resource r,
ResourceMethod m,
Parameter p) |
Request |
createRequest(Resource r,
ResourceMethod m) |
Representation |
createRequestRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType) |
Resource |
createResource(Resource r,
String path) |
Resources |
createResources() |
List<Response> |
createResponses(Resource r,
ResourceMethod m) |
String |
getRequiredJaxbContextPath()
The jaxb context path that is used when the generated wadl application is marshalled
to a file.
|
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.
|
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-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.