| de.anomic.http.httpHeader
Method Summary | |
public boolean | acceptGzip() | public String | add(String key, String value) | public long | age() | public long | contentLength() | public Date | date() | public Date | expires() | public static String | extractCharsetFromMimetyeHeader(String mimeType) | public Object | get(Object key, Object dflt) | public String | getCharacterEncoding() | public Vector<Entry> | getCookieVector() | public Iterator<Entry> | getCookies() Returns an iterator within all properties can be reached. | public String | getHeaderCookies() | public Object[] | getMultiple(String key) | public static yacyURL | getRequestURL(Properties conProp) | public Object | getSingle(Object key, int count) | public boolean | gzip() | public static void | handleTransparentProxySupport(httpHeader header, Properties prop, String virtualHost, boolean isTransparentProxy) | public Date | ifModifiedSince() | public Object | ifRange() | public int | keyCount(String key) | public Date | lastModified() | public String | mime() | public static Properties | parseRequestLine(String s, Properties prop, String virtualHost) | public static Properties | parseRequestLine(String cmd, String args, Properties prop, String virtualHost) | public static Object[] | parseResponseLine(String respLine) | public String | put(String key, String value) | public static httpHeader | readHeader(Properties prop, serverCore.Session theSession) | public static httpHeader | readHttpHeader(BufferedReader reader) | public void | setCookie(String name, String value, String expires, String path, String domain, boolean secure) Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. | public void | setCookie(String name, String value, String expires, String path, String domain) Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. | public void | setCookie(String name, String value, String expires, String path) Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. | public void | setCookie(String name, String value, String expires) Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. | public void | setCookie(String name, String value) Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie valueNote: this cookie will be sent over each connection independend if it is safe connection or not. | public void | setCookieVector(Vector<Entry> mycookies) | public void | store(File f) | public static boolean | supportChunkedEncoding(Properties conProp) | public StringBuffer | toHeaderString(String httpVersion, int httpStatusCode, String httpStatusText) | public void | toHeaderString(String httpVersion, int httpStatusCode, String httpStatusText, StringBuffer theHeader) | public String | toString() | public String | userAgent() |
ACCEPT_CHARSET | final public static String ACCEPT_CHARSET(Code) | | |
ACCEPT_ENCODING | final public static String ACCEPT_ENCODING(Code) | | |
ACCEPT_LANGUAGE | final public static String ACCEPT_LANGUAGE(Code) | | |
CONNECTION_PROP_ARGS | final public static String CONNECTION_PROP_ARGS(Code) | | |
CONNECTION_PROP_CLIENTIP | final public static String CONNECTION_PROP_CLIENTIP(Code) | | |
CONNECTION_PROP_CLIENT_REQUEST_HEADER | final public static String CONNECTION_PROP_CLIENT_REQUEST_HEADER(Code) | | |
CONNECTION_PROP_EXT | final public static String CONNECTION_PROP_EXT(Code) | | |
CONNECTION_PROP_HOST | final public static String CONNECTION_PROP_HOST(Code) | | |
CONNECTION_PROP_HTTP_VER | final public static String CONNECTION_PROP_HTTP_VER(Code) | | |
CONNECTION_PROP_KEEP_ALIVE_COUNT | final public static String CONNECTION_PROP_KEEP_ALIVE_COUNT(Code) | | |
CONNECTION_PROP_METHOD | final public static String CONNECTION_PROP_METHOD(Code) | | |
CONNECTION_PROP_PATH | final public static String CONNECTION_PROP_PATH(Code) | | |
CONNECTION_PROP_PERSISTENT | final public static String CONNECTION_PROP_PERSISTENT(Code) | | |
CONNECTION_PROP_PREV_REQUESTLINE | final public static String CONNECTION_PROP_PREV_REQUESTLINE(Code) | | |
CONNECTION_PROP_PROXY_RESPOND_CODE | final public static String CONNECTION_PROP_PROXY_RESPOND_CODE(Code) | | |
CONNECTION_PROP_PROXY_RESPOND_HEADER | final public static String CONNECTION_PROP_PROXY_RESPOND_HEADER(Code) | | |
CONNECTION_PROP_PROXY_RESPOND_SIZE | final public static String CONNECTION_PROP_PROXY_RESPOND_SIZE(Code) | | |
CONNECTION_PROP_PROXY_RESPOND_STATUS | final public static String CONNECTION_PROP_PROXY_RESPOND_STATUS(Code) | | |
CONNECTION_PROP_REQUESTLINE | final public static String CONNECTION_PROP_REQUESTLINE(Code) | | |
CONNECTION_PROP_REQUEST_END | final public static String CONNECTION_PROP_REQUEST_END(Code) | | |
CONNECTION_PROP_REQUEST_START | final public static String CONNECTION_PROP_REQUEST_START(Code) | | |
CONNECTION_PROP_URL | final public static String CONNECTION_PROP_URL(Code) | | |
CONNECTION_PROP_USER | final public static String CONNECTION_PROP_USER(Code) | | |
CONTENT_ENCODING | final public static String CONTENT_ENCODING(Code) | | |
CONTENT_ENCODING_GZIP | final public static String CONTENT_ENCODING_GZIP(Code) | | |
CONTENT_LENGTH | final public static String CONTENT_LENGTH(Code) | | |
CONTENT_LOCATION | final public static String CONTENT_LOCATION(Code) | | |
DEFAULT_CHARSET | final public static String DEFAULT_CHARSET(Code) | | |
HTTP_VERSION_0_9 | final public static String HTTP_VERSION_0_9(Code) | | |
HTTP_VERSION_1_0 | final public static String HTTP_VERSION_1_0(Code) | | |
HTTP_VERSION_1_1 | final public static String HTTP_VERSION_1_1(Code) | | |
IF_MODIFIED_SINCE | final public static String IF_MODIFIED_SINCE(Code) | | |
METHOD_CONNECT | final public static String METHOD_CONNECT(Code) | | |
PROXY_AUTHENTICATE | final public static String PROXY_AUTHENTICATE(Code) | | |
PROXY_AUTHORIZATION | final public static String PROXY_AUTHORIZATION(Code) | | |
PROXY_CONNECTION | final public static String PROXY_CONNECTION(Code) | | |
TRANSFER_ENCODING | final public static String TRANSFER_ENCODING(Code) | | |
WWW_AUTHENTICATE | final public static String WWW_AUTHENTICATE(Code) | | |
X_CACHE_LOOKUP | final public static String X_CACHE_LOOKUP(Code) | | |
X_FORWARDED_FOR | final public static String X_FORWARDED_FOR(Code) | | |
X_YACY_INDEX_CONTROL | final public static String X_YACY_INDEX_CONTROL(Code) | | |
X_YACY_KEEP_ALIVE_REQUEST_COUNT | final public static String X_YACY_KEEP_ALIVE_REQUEST_COUNT(Code) | | |
X_YACY_ORIGINAL_REQUEST_LINE | final public static String X_YACY_ORIGINAL_REQUEST_LINE(Code) | | |
X_YACY_PREVIOUS_REQUEST_LINE | final public static String X_YACY_PREVIOUS_REQUEST_LINE(Code) | | |
httpHeader | public httpHeader()(Code) | | |
acceptGzip | public boolean acceptGzip()(Code) | | |
contentLength | public long contentLength()(Code) | | |
extractCharsetFromMimetyeHeader | public static String extractCharsetFromMimetyeHeader(String mimeType)(Code) | | |
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
getCookies | public Iterator<Entry> getCookies()(Code) | | Returns an iterator within all properties can be reached.
Is used mainly by httpd.
Example:
Iterator it=serverObjects.getRequestProperties();
while(it.hasNext())
{
java.util.Map.Entry e=(java.util.Map.Entry)it.next();
String propertyName=e.getKey();
String propertyValue=e.getValue();
}
iterator to read all request properties. |
gzip | public boolean gzip()(Code) | | |
handleTransparentProxySupport | public static void handleTransparentProxySupport(httpHeader header, Properties prop, String virtualHost, boolean isTransparentProxy)(Code) | | |
ifModifiedSince | public Date ifModifiedSince()(Code) | | |
setCookie | public void setCookie(String name, String value, String expires, String path, String domain, boolean secure)(Code) | | Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. If null - cookie will stay forever Parameters: path - Path the cookie belongs to. Default - "/". Can be null. Parameters: domain - Domain this cookie belongs to. Default - domain name. Can be null. Parameters: secure - If true cookie will be send only over safe connection such as https See Also: further See Also: documentation: docs.sun.com |
setCookie | public void setCookie(String name, String value, String expires, String path, String domain)(Code) | | Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. If null - cookie will stay forever Parameters: path - Path the cookie belongs to. Default - "/". Can be null. Parameters: domain - Domain this cookie belongs to. Default - domain name. Can be null.Note: this cookie will be sent over each connection independend if it is safe connection or not. See Also: further See Also: documentation: docs.sun.com |
setCookie | public void setCookie(String name, String value, String expires, String path)(Code) | | Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. If null - cookie will stay forever Parameters: path - Path the cookie belongs to. Default - "/". Can be null.Note: this cookie will be sent over each connection independend if it is safe connection or not. See Also: further See Also: documentation: docs.sun.com |
setCookie | public void setCookie(String name, String value, String expires)(Code) | | Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie value Parameters: expires - when should this cookie be autmatically deleted. If null - cookie will stay foreverNote: this cookie will be sent over each connection independend if it is safe connection or not. See Also: further See Also: documentation: docs.sun.com |
setCookie | public void setCookie(String name, String value)(Code) | | Sets Cookie on the client machine.
Parameters: name - Cookie name Parameters: value - Cookie valueNote: this cookie will be sent over each connection independend if it is safe connection or not. This cookie never expires See Also: further See Also: documentation: docs.sun.com |
setCookieVector | public void setCookieVector(Vector<Entry> mycookies)(Code) | | |
supportChunkedEncoding | public static boolean supportChunkedEncoding(Properties conProp)(Code) | | |
|
|