/** * Return {@link RuntimeResourceModel runtime resource model} based on this this resource model. * * @return Runtime resource model created from this resource model. */ public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } }
/** * Get the resource name. * <p/> * If the resource was constructed from a JAX-RS annotated resource class, * the resource name will be set to the {@link Class#getName() fully-qualified name} * of the resource class. * * @return reference JAX-RS resource handler class. */ public String getName() { return name.get(); }
/** * Return {@link RuntimeResourceModel runtime resource model} based on this this resource model. * * @return Runtime resource model created from this resource model. */ public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } }
/** * Get the resource name. * <p/> * If the resource was constructed from a JAX-RS annotated resource class, * the resource name will be set to the {@link Class#getName() fully-qualified name} * of the resource class. * * @return reference JAX-RS resource handler class. */ public String getName() { return name.get(); }
@Override public ScheduledExecutorService getExecutorService() { return executorService.get(); }
@Override public ScheduledExecutorService getExecutorService() { return executorService.get(); }
@Override public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { return attributeValues.get(attribute).get(); }
@Override public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { return attributeValues.get(attribute).get(); }
@Override public Feature getOAuth1Feature() { if (this.accessToken == null) { throw new IllegalStateException(LocalizationMessages.ERROR_FLOW_NOT_FINISHED()); } return oAuth1ClientFilterFeature.get(); } }
/** * Get the asynchronous context associated with this request processing context. * * May return {@code null} if no asynchronous context has been initialized in this request processing context yet. * * @return asynchronous context associated with this request processing context, or {@code null} if the * asynchronous context has not been initialized yet * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}). */ public AsyncContext asyncContext() { return asyncContextValueRef.get().get(); }
/** * Get the asynchronous context associated with this request processing context. * * May return {@code null} if no asynchronous context has been initialized in this request processing context yet. * * @return asynchronous context associated with this request processing context, or {@code null} if the * asynchronous context has not been initialized yet * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}). */ public AsyncContext asyncContext() { return asyncContextValueRef.get().get(); }
@Override public Set<String> getParameterNames() { HashSet<String> n = new HashSet<String>(); n.addAll(keys(context.getUriInfo().getQueryParameters())); n.addAll(keys(formParams.get())); return n; }
@Override public List<String> getParameterValues(String name) { ArrayList<String> v = new ArrayList<String>(); v.addAll(values(context.getUriInfo().getQueryParameters(), name)); v.addAll(values(formParams.get(), name)); return v; }
private Unmarshaller getUnmarshaller(Class type) throws JAXBException { final ContextResolver<Unmarshaller> resolver = mtUnmarshaller.get(); if (resolver != null) { Unmarshaller u = resolver.getContext(type); if (u != null) { return u; } } final JAXBContext ctx = getJAXBContext(type); return (ctx == null) ? null : ctx.createUnmarshaller(); }
private JAXBContext getJAXBContext(Class type) throws JAXBException { final ContextResolver<JAXBContext> resolver = mtContext.get(); if (resolver != null) { JAXBContext c = resolver.getContext(type); if (c != null) { return c; } } return getStoredJaxbContext(type); }
private JAXBContext getJAXBContext(Class type) throws JAXBException { final ContextResolver<JAXBContext> jaxbContextContextResolver = mtContext.get(); if (jaxbContextContextResolver != null) { JAXBContext c = jaxbContextContextResolver.getContext(type); if (c != null) { return c; } } return getStoredJAXBContext(type); }
@Override public void run() { try { requestScopeListener.resume(foreignScopeInstance, responder.runtime.injectionManager); final Response response = responseValue.get(); responder.process(new ContainerResponse(responder.processingContext.request(), response)); } catch (final Throwable t) { responder.process(t); } } });
@Override public void run() { try { requestScopeListener.resume(foreignScopeInstance, responder.runtime.injectionManager); final Response response = responseValue.get(); responder.process(new ContainerResponse(responder.processingContext.request(), response)); } catch (final Throwable t) { responder.process(t); } } });
private Router createMethodRouter(final ResourceMethod resourceMethod) { Router methodAcceptor = null; switch (resourceMethod.getType()) { case RESOURCE_METHOD: case SUB_RESOURCE_METHOD: methodAcceptor = Routers.endpoint(createInflector(resourceMethod)); break; case SUB_RESOURCE_LOCATOR: methodAcceptor = locatorBuilder.get().getRouter(resourceMethod); break; } return new PushMethodHandlerRouter(resourceMethod.getInvocable().getHandler(), methodAcceptor); }
private Router createMethodRouter(final ResourceMethod resourceMethod) { Router methodAcceptor = null; switch (resourceMethod.getType()) { case RESOURCE_METHOD: case SUB_RESOURCE_METHOD: methodAcceptor = Routers.endpoint(createInflector(resourceMethod)); break; case SUB_RESOURCE_LOCATOR: methodAcceptor = locatorBuilder.get().getRouter(resourceMethod); break; } return new PushMethodHandlerRouter(resourceMethod.getInvocable().getHandler(), methodAcceptor); }