Class ResourceContext


  • public class ResourceContext
    extends Object
    A resource request context. This class is not thread safe.
    Author:
    Bogdan Stefanescu
    • Field Detail

      • app

        protected ApplicationHost app
        The JAX-RS application providing the resources.
      • request

        protected javax.servlet.http.HttpServletRequest request
      • uriInfo

        protected javax.ws.rs.core.UriInfo uriInfo
    • Constructor Detail

      • ResourceContext

        protected ResourceContext()
    • Method Detail

      • destroyContext

        public static void destroyContext()
      • getBundleStack

        public final LinkedList<org.osgi.framework.Bundle> getBundleStack()
      • setUriInfo

        public void setUriInfo​(javax.ws.rs.core.UriInfo uriInfo)
      • setRequest

        public void setRequest​(javax.servlet.http.HttpServletRequest request)
      • getBundle

        public final org.osgi.framework.Bundle getBundle()
      • getRequest

        public javax.servlet.http.HttpServletRequest getRequest()
      • getPrincipal

        public Principal getPrincipal()
      • getUriInfo

        public javax.ws.rs.core.UriInfo getUriInfo()
      • getBaseUri

        public URI getBaseUri()
      • pushBundleFor

        public void pushBundleFor​(Object obj)
      • pushBundle

        public void pushBundle​(org.osgi.framework.Bundle bundle)
      • getResourceBundle

        protected org.osgi.framework.Bundle getResourceBundle​(Object res)
      • getViewRoot

        public String getViewRoot()
        The prefix used to reference templates in template source locators
      • findEntry

        public URL findEntry​(String path)