Class SimpleContentGenerator

java.lang.Object
io.milton.http.http11.SimpleContentGenerator
All Implemented Interfaces:
ContentGenerator

public class SimpleContentGenerator extends Object implements ContentGenerator
Just uses simple property values to generate error content
Author:
brad
  • Constructor Details

    • SimpleContentGenerator

      public SimpleContentGenerator()
  • Method Details

    • generate

      public void generate(Resource resource, Request request, Response response, Response.Status status)
      Description copied from interface: ContentGenerator
      Generate an error page for the given status
      Specified by:
      generate in interface ContentGenerator
    • getMethodNotAllowed

      public String getMethodNotAllowed()
      Returns:
      the methodNotAllowed
    • setMethodNotAllowed

      public void setMethodNotAllowed(String methodNotAllowed)
      Parameters:
      methodNotAllowed - the methodNotAllowed to set
    • getNotFound

      public String getNotFound()
      Returns:
      the notFound
    • setNotFound

      public void setNotFound(String notFound)
      Parameters:
      notFound - the notFound to set
    • getMethodNotImplemented

      public String getMethodNotImplemented()
      Returns:
      the methodNotImplemented
    • setMethodNotImplemented

      public void setMethodNotImplemented(String methodNotImplemented)
      Parameters:
      methodNotImplemented - the methodNotImplemented to set
    • getConflict

      public String getConflict()
      Returns:
      the conflict
    • setConflict

      public void setConflict(String conflict)
      Parameters:
      conflict - the conflict to set
    • getServerError

      public String getServerError()
      Returns:
      the serverError
    • setServerError

      public void setServerError(String serverError)
      Parameters:
      serverError - the serverError to set
    • getUnauthorised

      public String getUnauthorised()
      Returns:
      the unauthorised
    • setUnauthorised

      public void setUnauthorised(String unauthorised)
      Parameters:
      unauthorised - the unauthorised to set
    • getUnknown

      public String getUnknown()
      Returns:
      the unknown
    • setUnknown

      public void setUnknown(String unknown)
      Parameters:
      unknown - the unknown to set