HTTP
com.roxen.roxen
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
static RoxenResponse |
httpAuthRequired(java.lang.String realm)
Create a response requesting authentication information. |
static RoxenResponse |
httpAuthRequired(java.lang.String realm,
java.lang.String message)
Create a response requesting authentication information |
static java.lang.String |
httpEncodeString(java.lang.String f)
Quotes "dangerous" characters in an URL for sending it with HTTP. |
static RoxenResponse |
httpFileAnswer(java.io.File text)
Create an HTTP response from a File |
static RoxenResponse |
httpFileAnswer(java.io.File text,
java.lang.String type)
Create a response with a specific media type from a File |
static RoxenResponse |
httpFileAnswer(java.io.File text,
java.lang.String type,
long len)
Create a response of known length with a specific media type from a File |
static RoxenResponse |
httpFileAnswer(java.io.InputStream text)
Create an HTTP response from an InputStream. |
static RoxenResponse |
httpFileAnswer(java.io.InputStream text,
java.lang.String type)
Create a response with a specific media type from an InputStream. |
static RoxenResponse |
httpFileAnswer(java.io.InputStream text,
java.lang.String type,
long len)
Create a response of known length with a specific media type from an InputStream. |
static RoxenResponse |
httpFileAnswer(java.io.Reader text)
Create an HTML response from a Reader. |
static RoxenResponse |
httpFileAnswer(java.io.Reader text,
java.lang.String type)
Create a response with a specific media type from a Reader. |
static RoxenResponse |
httpFileAnswer(java.io.Reader text,
java.lang.String type,
long len)
Create a response of known length with a specific media type from a Reader. |
static RoxenResponse |
httpLowAnswer(int error)
Create a response object with a specific error code and no body text. |
static RoxenResponse |
httpLowAnswer(int error,
java.lang.String data)
Create a response object with a specific error code and HTML message. |
static RoxenResponse |
httpProxyAuthRequired(java.lang.String realm)
Create a response requesting proxy authentication information. |
static RoxenResponse |
httpProxyAuthRequired(java.lang.String realm,
java.lang.String message)
Create a response requesting proxy authentication information |
static RoxenResponse |
httpRedirect(java.net.URL url)
Create a redirect response to a specified URL |
static RoxenResponse |
httpRXMLAnswer(java.lang.String text)
Create an HTML response from an RXML parsed string value. |
static RoxenResponse |
httpRXMLAnswer(java.lang.String text,
java.lang.String type)
Create a response with a specific media type from an RXML parsed string value. |
static RoxenResponse |
httpStringAnswer(java.lang.String text)
Create an HTML response from a string value. |
static RoxenResponse |
httpStringAnswer(java.lang.String text,
java.lang.String type)
Create a response with a specific media type from a string value. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
The following characters are replaced with % escapes: SP, TAB, LF, CR, %, ', ", NUL.
f - the string to quoteerror - the HTTP error codedata - the HTML text messageerror - the HTTP error codetext - the content of the responsetype - the media type of the responsetext - the content of the responsetext - the content of the responsetype - the media type of the responsetext - the content of the responsetext - the Reader which should produce the content of the responsetype - the media type of the responselen - the number of bytes in the contenttext - the Reader which should produce the content of the responsetype - the media type of the responsetext - the Reader which should produce the content of the responsetext - the InputStream which should produce the content of the responsetype - the media type of the responselen - the number of bytes in the contenttext - the InputStream which should produce the content of the responsetype - the media type of the responsetext - the InputStream which should produce the content of the responsetext - the File from which the content should be readtype - the media type of the responselen - the number of bytes in the contenttext - the File from which the content should be readtype - the media type of the responsetext - the File from which the content should be readtype - the media type of the responseurl - the URL to which the client should be redirectedrealm - the security realm for which authentication is requiredmessage - an HTTP string to be displayed if no authentication is providedrealm - the security realm for which authentication is requiredrealm - the security realm for which authentication is requiredmessage - an HTTP string to be displayed if no authentication is providedrealm - the security realm for which authentication is required