Package snap.web

Class WebSiteX


public class WebSiteX extends WebSite
This WebSite subclass implements some conveniences.
  • Constructor Details

    • WebSiteX

      public WebSiteX()
      Constructor.
  • Method Details

    • doGetOrHead

      protected void doGetOrHead(WebRequest aReq, WebResponse aResp, boolean isHead)
      Handles a get or head request.
      Specified by:
      doGetOrHead in class WebSite
    • getFileHeaderForPath

      protected FileHeader getFileHeaderForPath(String filePath)
      Returns the file header for given path.
    • getFileHeadersForPath

      protected FileHeader[] getFileHeadersForPath(String filePath)
      Returns FileHeaders for dir file path.
    • getFileBytesForGet

      protected byte[] getFileBytesForGet(WebRequest aReq, WebResponse aResp)
      Returns bytes for Get call and given request/response.