Class RestrictedContentAdapter

  • Direct Known Subclasses:
    AppClientHTTPAdapter

    public class RestrictedContentAdapter
    extends org.glassfish.grizzly.http.server.HttpHandler
    Author:
    tjquinn
    • Method Detail

      • service

        public void service​(org.glassfish.grizzly.http.server.Request gReq,
                            org.glassfish.grizzly.http.server.Response gResp)
        Specified by:
        service in class org.glassfish.grizzly.http.server.HttpHandler
      • contextRoot

        public String contextRoot()
      • relativizeURIString

        protected String relativizeURIString​(String candidateContextRoot,
                                             String uriString)
      • serviceContent

        protected boolean serviceContent​(org.glassfish.grizzly.http.server.Request gReq,
                                         org.glassfish.grizzly.http.server.Response gResp)
                                  throws IOException
        Throws:
        IOException
      • returnIfClientCacheIsCurrent

        protected boolean returnIfClientCacheIsCurrent​(String relativeURIString,
                                                       org.glassfish.grizzly.http.server.Request gReq,
                                                       long contentTimestamp)
      • suspend

        public void suspend()
      • resume

        public void resume()
      • finishResponse

        protected void finishResponse​(org.glassfish.grizzly.http.server.Response gResp,
                                      int status)
      • respondNotFound

        protected void respondNotFound​(org.glassfish.grizzly.http.server.Response gResp)
      • finishSuccessResponse

        protected void finishSuccessResponse​(org.glassfish.grizzly.http.server.Response gResp,
                                             int status)
      • finishErrorResponse

        protected void finishErrorResponse​(org.glassfish.grizzly.http.server.Response gResp,
                                           int status)
      • dumpContent

        protected String dumpContent()
      • logPrefix

        protected String logPrefix()