Class HTTPErrdoc

java.lang.Object
org.omegazero.proxy.http.HTTPErrdoc

public class HTTPErrdoc extends Object
  • Method Details

    • generate

      public String generate(int status, String title, String message, String requestId, String clientAddress)
    • setServername

      public void setServername(String servername)
    • getMimeType

      public String getMimeType()
    • fromString

      public static HTTPErrdoc fromString(String data)
    • fromString

      public static HTTPErrdoc fromString(String data, String mimeType)
      Generates a new HTTPErrdoc instance from the given data.

      The mimeType argument is the type returned by getMimeType().
      Parameters:
      data - The string data
      mimeType - The MIME type of the error document
      Returns:
      The new HTTPErrdoc instance