| java.lang.Object de.anomic.http.httpd
httpd | final public class httpd implements serverHandler(Code) | | Instances of this class can be passed as argument to the serverCore.
The generic server dispatches HTTP commands and calls the
method GET, HEAD or POST in this class
these methods parse the command line and decide wether to call
a proxy servlet or a file server servlet
|
Method Summary | |
public Boolean | CONNECT(String arg) | public Boolean | EMPTY(String arg) | public Boolean | GET(String arg) | public Boolean | HEAD(String arg) | public Boolean | OPTIONS(String arg) | public Boolean | POST(String arg) | public Boolean | TRACE(String arg) | public Boolean | UNKNOWN(String requestLine) | public Object | clone() | public static String | decodeHtmlEntities(String s) | public void | doUserAccounting(Properties conProps) | public static boolean | equals(byte[] a, int aoff, byte[] b, int boff, int len) | public String | error(Throwable e) | public Properties | getConProp() | public String | greeting() | public static int | indexOf(int start, byte[] array, byte[] pattern) | public void | initSession(serverCore.Session newsession) Must be called at least once, but can be called again to re-use the object. | public static boolean | isThisHostIP(String hostName) | public static boolean | isThisHostIP(InetAddress clientAddress) | public static boolean | isThisHostName(String hostName) | public static boolean | isThisHostPortForwardingIP(String hostName) | public static boolean | isThisSeedIP(String hostName) | public static int | parseArgs(serverObjects args, InputStream in, int length) | public static int | parseArgs(serverObjects args, String argsString) | public static HashMap<String, byte[]> | parseMultipart(httpHeader header, serverObjects args, InputStream in, int length) | public static HashMap<String, byte[]> | parseMultipart(httpHeader header, serverObjects args, byte[] buffer) | public void | reset() | final public static void | sendRespondBody(Properties conProp, OutputStream respond, byte[] body) | final public static void | sendRespondError(Properties conProp, OutputStream respond, int errorcase, int httpStatusCode, String httpStatusText, String detailedErrorMsg, Throwable stackTrace) | final public static void | sendRespondError(Properties conProp, OutputStream respond, int httpStatusCode, String httpStatusText, File detailedErrorMsgFile, serverObjects detailedErrorMsgValues, Throwable stackTrace) | final public static void | sendRespondError(Properties conProp, OutputStream respond, int errorcase, int httpStatusCode, String httpStatusText, String detailedErrorMsgText, Object detailedErrorMsgFile, serverObjects detailedErrorMsgValues, Throwable stackTrace, httpHeader header) | final public static void | sendRespondHeader(Properties conProp, OutputStream respond, String httpVersion, int httpStatusCode, String httpStatusText, long contentLength) | final public static void | sendRespondHeader(Properties conProp, OutputStream respond, String httpVersion, int httpStatusCode, String httpStatusText, String contentType, long contentLength, Date moddate, Date expires, httpHeader headers, String contentEnc, String transferEnc) | final public static void | sendRespondHeader(Properties conProp, OutputStream respond, String httpVersion, int httpStatusCode, String httpStatusText, String contentType, long contentLength, Date moddate, Date expires, httpHeader headers, String contentEnc, String transferEnc, boolean nocache) | final public static void | sendRespondHeader(Properties conProp, OutputStream respond, String httpVersion, int httpStatusCode, httpHeader header) | final public static void | sendRespondHeader(Properties conProp, OutputStream respond, String httpVersion, int httpStatusCode, String httpStatusText, httpHeader header) | public static boolean | shallTransportZipped(String path) | public static int | staticAdminAuthenticated(String authorization, serverSwitch sw) |
ADMIN_ACCOUNT_B64MD5 | final public static String ADMIN_ACCOUNT_B64MD5(Code) | | public static final String ADMIN_ACCOUNT_B64MD5 = "adminAccountBase64MD5"
Name of the setting holding the authentification hash for the static admin -account. It is calculated
by first encoding username:password as Base64 and hashing it using
serverCodings.encodeMD5Hex(String) .
|
ERRORCASE_FILE | final public static int ERRORCASE_FILE(Code) | | |
ERRORCASE_MESSAGE | final public static int ERRORCASE_MESSAGE(Code) | | |
keepAliveSupport | public static boolean keepAliveSupport(Code) | | |
nextPos | static int nextPos(Code) | | |
equals | public static boolean equals(byte[] a, int aoff, byte[] b, int boff, int len)(Code) | | |
indexOf | public static int indexOf(int start, byte[] array, byte[] pattern)(Code) | | |
isThisHostIP | public static boolean isThisHostIP(String hostName)(Code) | | |
isThisHostName | public static boolean isThisHostName(String hostName)(Code) | | |
isThisHostPortForwardingIP | public static boolean isThisHostPortForwardingIP(String hostName)(Code) | | |
isThisSeedIP | public static boolean isThisSeedIP(String hostName)(Code) | | |
sendRespondHeader | final public static void sendRespondHeader(Properties conProp, OutputStream respond, String httpVersion, int httpStatusCode, String httpStatusText, String contentType, long contentLength, Date moddate, Date expires, httpHeader headers, String contentEnc, String transferEnc) throws IOException(Code) | | |
sendRespondHeader | final public static void sendRespondHeader(Properties conProp, OutputStream respond, String httpVersion, int httpStatusCode, String httpStatusText, String contentType, long contentLength, Date moddate, Date expires, httpHeader headers, String contentEnc, String transferEnc, boolean nocache) throws IOException(Code) | | |
shallTransportZipped | public static boolean shallTransportZipped(String path)(Code) | | |
|
|