Package org.omegazero.proxy.http
Class HTTPErrdoc
java.lang.Object
org.omegazero.proxy.http.HTTPErrdoc
-
Method Summary
Modifier and TypeMethodDescriptionstatic HTTPErrdocfromString(String data) static HTTPErrdocfromString(String data, String mimeType) Generates a newHTTPErrdocinstance from the given data.
The mimeType argument is the type returned bygetMimeType().voidsetServername(String servername)
-
Method Details
-
generate
-
setServername
-
getMimeType
-
fromString
-
fromString
Generates a newHTTPErrdocinstance from the given data.
The mimeType argument is the type returned bygetMimeType().- Parameters:
data- The string datamimeType- The MIME type of the error document- Returns:
- The new
HTTPErrdocinstance
-