java.lang.Object
de.seitenbau.serviceportal.prozesspipeline.webserver.AbstractHandler
All Implemented Interfaces:
HttpHandler, WebServerUtils
Direct Known Subclasses:
FormsHandler, ProcessModelsHandler

public abstract class AbstractHandler extends Object implements HttpHandler, WebServerUtils
  • Field Details

    • url

      protected final String url
    • basepath

      protected final File basepath
  • Constructor Details

    • AbstractHandler

      public AbstractHandler(String sgwUrl, File basepath)
  • Method Details

    • handle

      public void handle(HttpExchange httpExchange) throws IOException
      Specified by:
      handle in interface HttpHandler
      Throws:
      IOException
    • getUrlForCorsHeader

      protected String getUrlForCorsHeader(String sgwUrl)
    • getResourcePath

      protected abstract String getResourcePath()
    • getEmptyFileDefault

      protected abstract byte[] getEmptyFileDefault()
    • getContentType

      protected abstract String getContentType()