Package com.predic8.membrane.core.util
Class HttpUtil
java.lang.Object
com.predic8.membrane.core.util.HttpUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DateFormatstatic HeadercreateHeaders(String contentType, String... headers) Take out the last entry added by Membrane.static StringgetMessageForStatusCode(int code) static StringgetPathAndQueryString(String dest) static intstatic intstatic StringhtmlMessage(String caption, String text) static booleanisAbsoluteURI(String uri) static StringreadLine(InputStream in) static ResponsesetHTMLErrorResponse(Response.ResponseBuilder responseBuilder, String message, String comment) static StringunescapedHtmlMessage(String caption, String text)
-
Constructor Details
-
HttpUtil
public HttpUtil()
-
-
Method Details
-
getForwardedForList
Take out the last entry added by Membrane. -
createGMTDateFormat
-
readLine
- Throws:
IOExceptionEndOfStreamException
-
setHTMLErrorResponse
public static Response setHTMLErrorResponse(Response.ResponseBuilder responseBuilder, String message, String comment) -
createHeaders
-
getPathAndQueryString
- Throws:
MalformedURLException
-
getPort
-
getPort
- Throws:
MalformedURLException
-
isAbsoluteURI
-
getMessageForStatusCode
-
unescapedHtmlMessage
-
htmlMessage
-