Interface StaticContent

  • All Superinterfaces:
    Content
    All Known Implementing Classes:
    AutoSignedContent, FixedContent, StreamedAutoSignedStaticContent

    public interface StaticContent
    extends Content
    Represents all static content served for Java Web Start app client launches.

    This interface exposes a File object, as opposed to a stream for example, so that the Grizzly adapter that actually serves the content can use sendFile for efficiency.

    Author:
    tjquinn
    • Method Detail

      • file

        File file()
           throws IOException
        Returns a File object for the content.
        Returns:
        a File object for the content
        Throws:
        IOException
      • process

        void process​(String relativeURIString,
                     org.glassfish.grizzly.http.server.Request gReq,
                     org.glassfish.grizzly.http.server.Response gResp)
              throws Exception
        Process the static content, adding the correct data to the response.
        Parameters:
        relativeURIString - URI path by which the content was addressed
        gReq - the request
        gResp - the response
        Throws:
        Exception