Java Doc for httpHeader.java in  » Search-Engine » yacy » de » anomic » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » yacy » de.anomic.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.anomic.http.httpHeader

httpHeader
final public class httpHeader extends TreeMap implements Map<String, String>(Code)

Inner Class :class Entry implements Map.Entry<String, Object>

Field Summary
final public static  StringACCEPT
    
final public static  StringACCEPT_CHARSET
    
final public static  StringACCEPT_ENCODING
    
final public static  StringACCEPT_LANGUAGE
    
final public static  StringACCEPT_RANGES
    
final public static  StringAUTHORIZATION
    
final public static  StringCACHE_CONTROL
    
final public static  StringCONNECTION
    
final public static  StringCONNECTION_PROP_ARGS
    
final public static  StringCONNECTION_PROP_CLIENTIP
    
final public static  StringCONNECTION_PROP_CLIENT_REQUEST_HEADER
    
final public static  StringCONNECTION_PROP_EXT
    
final public static  StringCONNECTION_PROP_HOST
    
final public static  StringCONNECTION_PROP_HTTP_VER
    
final public static  StringCONNECTION_PROP_KEEP_ALIVE_COUNT
    
final public static  StringCONNECTION_PROP_METHOD
    
final public static  StringCONNECTION_PROP_PATH
    
final public static  StringCONNECTION_PROP_PERSISTENT
    
final public static  StringCONNECTION_PROP_PREV_REQUESTLINE
    
final public static  StringCONNECTION_PROP_PROXY_RESPOND_CODE
    
final public static  StringCONNECTION_PROP_PROXY_RESPOND_HEADER
    
final public static  StringCONNECTION_PROP_PROXY_RESPOND_SIZE
    
final public static  StringCONNECTION_PROP_PROXY_RESPOND_STATUS
    
final public static  StringCONNECTION_PROP_REQUESTLINE
    
final public static  StringCONNECTION_PROP_REQUEST_END
    
final public static  StringCONNECTION_PROP_REQUEST_START
    
final public static  StringCONNECTION_PROP_URL
    
final public static  StringCONNECTION_PROP_USER
    
final public static  StringCONTENT_ENCODING
    
final public static  StringCONTENT_ENCODING_GZIP
    
final public static  StringCONTENT_LENGTH
    
final public static  StringCONTENT_LOCATION
    
final public static  StringCONTENT_MD5
    
final public static  StringCONTENT_RANGE
    
final public static  StringCONTENT_TYPE
    
final public static  StringCOOKIE
    
final public static  StringDATE
    
final public static  StringDEFAULT_CHARSET
    
final public static  StringETAG
    
final public static  StringEXPIRES
    
final public static  StringHOST
    
final public static  StringHTTP_VERSION_0_9
    
final public static  StringHTTP_VERSION_1_0
    
final public static  StringHTTP_VERSION_1_1
    
final public static  StringIF_MODIFIED_SINCE
    
final public static  StringIF_RANGE
    
final public static  StringKEEP_ALIVE
    
final public static  StringLAST_MODIFIED
    
final public static  StringLOCATION
    
final public static  StringMETHOD_CONNECT
    
final public static  StringMETHOD_GET
    
final public static  StringMETHOD_HEAD
    
final public static  StringMETHOD_POST
    
final public static  StringPRAGMA
    
final public static  StringPROXY_AUTHENTICATE
    
final public static  StringPROXY_AUTHORIZATION
    
final public static  StringPROXY_CONNECTION
    
final public static  StringRANGE
    
final public static  StringREFERER
    
final public static  StringSERVER
    
final public static  StringSET_COOKIE
    
final public static  StringSET_COOKIE2
    
final public static  StringTE
    
final public static  StringTRANSFER_ENCODING
    
final public static  StringUPGRADE
    
final public static  StringUSER_AGENT
    
final public static  StringVIA
    
final public static  StringWWW_AUTHENTICATE
    
final public static  StringX_CACHE
    
final public static  StringX_CACHE_LOOKUP
    
final public static  StringX_FORWARDED_FOR
    
final public static  StringX_YACY_INDEX_CONTROL
    
final public static  StringX_YACY_KEEP_ALIVE_REQUEST_COUNT
    
final public static  StringX_YACY_ORIGINAL_REQUEST_LINE
    
final public static  StringX_YACY_PREVIOUS_REQUEST_LINE
    
final public static  HashMap<String, String>http0_9
    
final public static  HashMap<String, String>http1_0
    
final public static  HashMap<String, String>http1_1
    

Constructor Summary
public  httpHeader()
    
public  httpHeader(HashMap<String, String> reverseMappingCache)
    
public  httpHeader(HashMap<String, String> reverseMappingCache, File f)
    
public  httpHeader(HashMap<String, String> reverseMappingCache, Map<String, String> othermap)
    

Method Summary
public  booleanacceptGzip()
    
public  Stringadd(String key, String value)
    
public  longage()
    
public  longcontentLength()
    
public  Datedate()
    
public  Dateexpires()
    
public static  StringextractCharsetFromMimetyeHeader(String mimeType)
    
public  Objectget(Object key, Object dflt)
    
public  StringgetCharacterEncoding()
    
public  Vector<Entry>getCookieVector()
    
public  Iterator<Entry>getCookies()
     Returns an iterator within all properties can be reached.
public  StringgetHeaderCookies()
    
public  Object[]getMultiple(String key)
    
public static  yacyURLgetRequestURL(Properties conProp)
    
public  ObjectgetSingle(Object key, int count)
    
public  booleangzip()
    
public static  voidhandleTransparentProxySupport(httpHeader header, Properties prop, String virtualHost, boolean isTransparentProxy)
    
public  DateifModifiedSince()
    
public  ObjectifRange()
    
public  intkeyCount(String key)
    
public  DatelastModified()
    
public  Stringmime()
    
public static  PropertiesparseRequestLine(String s, Properties prop, String virtualHost)
    
public static  PropertiesparseRequestLine(String cmd, String args, Properties prop, String virtualHost)
    
public static  Object[]parseResponseLine(String respLine)
    
public  Stringput(String key, String value)
    
public static  httpHeaderreadHeader(Properties prop, serverCore.Session theSession)
    
public static  httpHeaderreadHttpHeader(BufferedReader reader)
    
public  voidsetCookie(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  voidsetCookie(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  voidsetCookie(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  voidsetCookie(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  voidsetCookie(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  voidsetCookieVector(Vector<Entry> mycookies)
    
public  voidstore(File f)
    
public static  booleansupportChunkedEncoding(Properties conProp)
    
public  StringBuffertoHeaderString(String httpVersion, int httpStatusCode, String httpStatusText)
    
public  voidtoHeaderString(String httpVersion, int httpStatusCode, String httpStatusText, StringBuffer theHeader)
    
public  StringtoString()
    
public  StringuserAgent()
    

Field Detail
ACCEPT
final public static String ACCEPT(Code)



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)



ACCEPT_RANGES
final public static String ACCEPT_RANGES(Code)



AUTHORIZATION
final public static String AUTHORIZATION(Code)



CACHE_CONTROL
final public static String CACHE_CONTROL(Code)



CONNECTION
final public static String CONNECTION(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)



CONTENT_MD5
final public static String CONTENT_MD5(Code)



CONTENT_RANGE
final public static String CONTENT_RANGE(Code)



CONTENT_TYPE
final public static String CONTENT_TYPE(Code)



COOKIE
final public static String COOKIE(Code)



DATE
final public static String DATE(Code)



DEFAULT_CHARSET
final public static String DEFAULT_CHARSET(Code)



ETAG
final public static String ETAG(Code)



EXPIRES
final public static String EXPIRES(Code)



HOST
final public static String HOST(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)



IF_RANGE
final public static String IF_RANGE(Code)



KEEP_ALIVE
final public static String KEEP_ALIVE(Code)



LAST_MODIFIED
final public static String LAST_MODIFIED(Code)



LOCATION
final public static String LOCATION(Code)



METHOD_CONNECT
final public static String METHOD_CONNECT(Code)



METHOD_GET
final public static String METHOD_GET(Code)



METHOD_HEAD
final public static String METHOD_HEAD(Code)



METHOD_POST
final public static String METHOD_POST(Code)



PRAGMA
final public static String PRAGMA(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)



RANGE
final public static String RANGE(Code)



REFERER
final public static String REFERER(Code)



SERVER
final public static String SERVER(Code)



SET_COOKIE
final public static String SET_COOKIE(Code)



SET_COOKIE2
final public static String SET_COOKIE2(Code)



TE
final public static String TE(Code)



TRANSFER_ENCODING
final public static String TRANSFER_ENCODING(Code)



UPGRADE
final public static String UPGRADE(Code)



USER_AGENT
final public static String USER_AGENT(Code)



VIA
final public static String VIA(Code)



WWW_AUTHENTICATE
final public static String WWW_AUTHENTICATE(Code)



X_CACHE
final public static String X_CACHE(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)



http0_9
final public static HashMap<String, String> http0_9(Code)



http1_0
final public static HashMap<String, String> http1_0(Code)



http1_1
final public static HashMap<String, String> http1_1(Code)




Constructor Detail
httpHeader
public httpHeader()(Code)



httpHeader
public httpHeader(HashMap<String, String> reverseMappingCache)(Code)



httpHeader
public httpHeader(HashMap<String, String> reverseMappingCache, File f) throws IOException(Code)



httpHeader
public httpHeader(HashMap<String, String> reverseMappingCache, Map<String, String> othermap)(Code)




Method Detail
acceptGzip
public boolean acceptGzip()(Code)



add
public String add(String key, String value)(Code)



age
public long age()(Code)



contentLength
public long contentLength()(Code)



date
public Date date()(Code)



expires
public Date expires()(Code)



extractCharsetFromMimetyeHeader
public static String extractCharsetFromMimetyeHeader(String mimeType)(Code)



get
public Object get(Object key, Object dflt)(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)



getCookieVector
public Vector<Entry> getCookieVector()(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.



getHeaderCookies
public String getHeaderCookies()(Code)



getMultiple
public Object[] getMultiple(String key)(Code)



getRequestURL
public static yacyURL getRequestURL(Properties conProp) throws MalformedURLException(Code)



getSingle
public Object getSingle(Object key, int count)(Code)



gzip
public boolean gzip()(Code)



handleTransparentProxySupport
public static void handleTransparentProxySupport(httpHeader header, Properties prop, String virtualHost, boolean isTransparentProxy)(Code)



ifModifiedSince
public Date ifModifiedSince()(Code)



ifRange
public Object ifRange()(Code)



keyCount
public int keyCount(String key)(Code)



lastModified
public Date lastModified()(Code)



mime
public String mime()(Code)



parseRequestLine
public static Properties parseRequestLine(String s, Properties prop, String virtualHost)(Code)



parseRequestLine
public static Properties parseRequestLine(String cmd, String args, Properties prop, String virtualHost)(Code)



parseResponseLine
public static Object[] parseResponseLine(String respLine)(Code)



put
public String put(String key, String value)(Code)



readHeader
public static httpHeader readHeader(Properties prop, serverCore.Session theSession) throws IOException(Code)



readHttpHeader
public static httpHeader readHttpHeader(BufferedReader reader) throws IOException(Code)
Reading http headers from a reader class and building up a httpHeader object
Parameters:
  reader - the BufferedReader that is used to read the http header lines a httpHeader-Object containing all parsed headers
throws:
  IOException -



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)



store
public void store(File f) throws IOException(Code)



supportChunkedEncoding
public static boolean supportChunkedEncoding(Properties conProp)(Code)



toHeaderString
public StringBuffer toHeaderString(String httpVersion, int httpStatusCode, String httpStatusText)(Code)



toHeaderString
public void toHeaderString(String httpVersion, int httpStatusCode, String httpStatusText, StringBuffer theHeader)(Code)



toString
public String toString()(Code)



userAgent
public String userAgent()(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.