/** * @return the application * @see com.sun.jersey.server.wadl.WadlGenerator#createApplication() */ public Application createApplication(UriInfo requestInfo) { final Application result = _delegate.createApplication(requestInfo); if (_applicationDocs != null && _applicationDocs.getDocs() != null && !_applicationDocs.getDocs().isEmpty()) { result.getDoc().addAll(_applicationDocs.getDocs()); } return result; }
public void init() throws Exception { if (_applicationDocsFile == null && _applicationDocsStream == null) { throw new IllegalStateException( "Neither the applicationDocsFile nor the applicationDocsStream" + " is set, one of both is required."); } _delegate.init(); String name = ApplicationDocs.class.getName(); final int i = name.lastIndexOf('.'); name = (i != -1) ? name.substring(0, i) : ""; final JAXBContext c = JAXBContext.newInstance(name, Thread.currentThread().getContextClassLoader()); final Unmarshaller m = c.createUnmarshaller(); final Object obj = _applicationDocsFile != null ? m.unmarshal(_applicationDocsFile) : m.unmarshal(_applicationDocsStream); _applicationDocs = ApplicationDocs.class.cast(obj); }
public String getRequiredJaxbContextPath() { return _delegate.getRequiredJaxbContextPath(); }
@Override public void attachTypes(ApplicationDescription egd) { _delegate.attachTypes(egd); }
@Override public ExternalGrammarDefinition createExternalGrammar() { return _delegate.createExternalGrammar(); }
/** * @return resources * @see com.sun.jersey.server.wadl.WadlGenerator#createResources() */ public Resources createResources() { return _delegate.createResources(); }
/** * @param r * @param m * @return response * @see * com.sun.jersey.server.wadl.WadlGenerator#createResponse(com.sun.jersey.api.model.AbstractResource, * com.sun.jersey.api.model.AbstractResourceMethod) */ public List<Response> createResponses(AbstractResource r, AbstractResourceMethod m) { return _delegate.createResponses(r, m); }
/** * @param r * @param path * @return resource * @see * com.sun.jersey.server.wadl.WadlGenerator#createResource(com.sun.jersey.api.model.AbstractResource, * java.lang.String) */ public Resource createResource(AbstractResource r, String path) { return _delegate.createResource(r, path); }
/** * @param r * @param m * @param p * @return parameter * @see * com.sun.jersey.server.wadl.WadlGenerator#createParam(com.sun.jersey.api.model.AbstractResource, * com.sun.jersey.api.model.AbstractMethod, com.sun.jersey.api.model.Parameter) */ public Param createParam(AbstractResource r, AbstractMethod m, Parameter p) { return _delegate.createParam(r, m, p); }
/** * @param r * @param m * @return request * @see * com.sun.jersey.server.wadl.WadlGenerator#createRequest(com.sun.jersey.api.model.AbstractResource, * com.sun.jersey.api.model.AbstractResourceMethod) */ public Request createRequest(AbstractResource r, AbstractResourceMethod m) { return _delegate.createRequest(r, m); }
/** * @param r * @param m * @param mediaType * @return representation type * @see * com.sun.jersey.server.wadl.WadlGenerator#createRequestRepresentation(com.sun.jersey.api.model.AbstractResource, * com.sun.jersey.api.model.AbstractResourceMethod, javax.ws.rs.core.MediaType) */ public Representation createRequestRepresentation( AbstractResource r, AbstractResourceMethod m, MediaType mediaType) { return _delegate.createRequestRepresentation(r, m, mediaType); }
/** * @param r * @param m * @return the method * @see * com.sun.jersey.server.wadl.WadlGenerator#createMethod(com.sun.jersey.api.model.AbstractResource, * com.sun.jersey.api.model.AbstractResourceMethod) */ public Method createMethod(AbstractResource r, AbstractResourceMethod m) { return _delegate.createMethod(r, m); }
/** Delegates the setting of the environment */ @Override public void setEnvironment(Environment env) { _delegate.setEnvironment(env); }