Java Doc for LaxURI.java in  » Web-Crawler » heritrix » org » archive » net » 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 » Web Crawler » heritrix » org.archive.net 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.archive.net.LaxURI

All known Subclasses:   org.archive.net.UURI,
LaxURI
public class LaxURI extends URI (Code)
URI subclass which allows partial/inconsistent encoding, matching the URIs which will be relayed in requests from popular web browsers (esp. Mozilla Firefox and MS IE).
author:
   gojomo


Field Summary
final protected static  char[]HTTPS_SCHEME
    
final protected static  char[]HTTP_SCHEME
    
final protected static  BitSetlax_abs_path
    
final protected static  BitSetlax_query
    
final protected static  BitSetlax_rel_segment
    

Constructor Summary
public  LaxURI(String uri, boolean escaped, String charset)
    
public  LaxURI(URI base, URI relative)
    
public  LaxURI(String uri, boolean escaped)
    
public  LaxURI()
    

Method Summary
protected static  Stringdecode(char[] component, String charset)
    
protected static  Stringdecode(String component, String charset)
    
public  StringgetPath()
    
public  StringgetPathQuery()
    
public  StringgetURI()
    
protected  BitSetlax(BitSet generous)
    
protected  voidparseAuthority(String original, boolean escaped)
     Coalesce the _host and _authority fields where possible. In the web crawl/http domain, most URIs have an identical _host and _authority.
protected  voidparseUriReference(String original, boolean escaped)
     IA OVERRIDDEN IN LaxURI TO INCLUDE FIX FOR http://issues.apache.org/jira/browse/HTTPCLIENT-588 In order to avoid any possilbity of conflict with non-ASCII characters, Parse a URI reference as a String with the character encoding of the local system or the document.
protected  voidsetURI()
     Coalesce _scheme to existing instances, where appropriate. In the web-crawl domain, most _schemes are 'http' or 'https', but the superclass always creates a new char[] instance.
protected  booleanvalidate(char[] component, BitSet generous)
    
protected  booleanvalidate(char[] component, int soffset, int eoffset, BitSet generous)
    

Field Detail
HTTPS_SCHEME
final protected static char[] HTTPS_SCHEME(Code)



HTTP_SCHEME
final protected static char[] HTTP_SCHEME(Code)



lax_abs_path
final protected static BitSet lax_abs_path(Code)



lax_query
final protected static BitSet lax_query(Code)



lax_rel_segment
final protected static BitSet lax_rel_segment(Code)




Constructor Detail
LaxURI
public LaxURI(String uri, boolean escaped, String charset) throws URIException(Code)



LaxURI
public LaxURI(URI base, URI relative) throws URIException(Code)



LaxURI
public LaxURI(String uri, boolean escaped) throws URIException(Code)



LaxURI
public LaxURI()(Code)




Method Detail
decode
protected static String decode(char[] component, String charset) throws URIException(Code)



decode
protected static String decode(String component, String charset) throws URIException(Code)



getPath
public String getPath() throws URIException(Code)



getPathQuery
public String getPathQuery() throws URIException(Code)



getURI
public String getURI() throws URIException(Code)



lax
protected BitSet lax(BitSet generous)(Code)
Given a BitSet -- typically one of the URI superclass's predefined static variables -- possibly replace it with a more-lax version to better match the character sets actually left unencoded in web browser requests
Parameters:
  generous - original BitSet (possibly more lax) BitSet to use



parseAuthority
protected void parseAuthority(String original, boolean escaped) throws URIException(Code)
Coalesce the _host and _authority fields where possible. In the web crawl/http domain, most URIs have an identical _host and _authority. (There is no port or user info.) However, the superclass always creates two separate char[] instances. Notably, the lengths of these char[] fields are equal if and only if their values are identical. This method makes use of this fact to reduce the two instances to one where possible, slimming instances.
See Also:   org.apache.commons.httpclient.URI.parseAuthority(java.lang.Stringboolean)



parseUriReference
protected void parseUriReference(String original, boolean escaped) throws URIException(Code)
IA OVERRIDDEN IN LaxURI TO INCLUDE FIX FOR http://issues.apache.org/jira/browse/HTTPCLIENT-588 In order to avoid any possilbity of conflict with non-ASCII characters, Parse a URI reference as a String with the character encoding of the local system or the document.

The following line is the regular expression for breaking-down a URI reference into its components.

 ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
 12            3  4          5       6  7        8 9
 

For example, matching the above expression to http://jakarta.apache.org/ietf/uri/#Related results in the following subexpression matches:

 $1 = http:
 scheme    =  $2 = http
 $3 = //jakarta.apache.org
 authority =  $4 = jakarta.apache.org
 path      =  $5 = /ietf/uri/
 $6 = 
 query     =  $7 = 
 $8 = #Related
 fragment  =  $9 = Related
 


Parameters:
  original - the original character sequence
Parameters:
  escaped - true if original is escaped
throws:
  URIException - If an error occurs.




setURI
protected void setURI()(Code)
Coalesce _scheme to existing instances, where appropriate. In the web-crawl domain, most _schemes are 'http' or 'https', but the superclass always creates a new char[] instance. For these two cases, we replace the created instance with a long-lived instance from a static field, saving 12-14 bytes per instance.
See Also:   org.apache.commons.httpclient.URI.setURI



validate
protected boolean validate(char[] component, BitSet generous)(Code)



validate
protected boolean validate(char[] component, int soffset, int eoffset, BitSet generous)(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.