Java Doc for Resolver.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » org » apache » xml » internal » resolver » 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 » 6.0 JDK Modules » jaxb xjc » com.sun.org.apache.xml.internal.resolver 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.org.apache.xml.internal.resolver.Catalog
      com.sun.org.apache.xml.internal.resolver.Resolver

Resolver
public class Resolver extends Catalog (Code)
An extension to OASIS Open Catalog files, this class supports suffix-based matching and an external RFC2483 resolver.
See Also:   Catalog
author:
   Norman Walsh
author:
   Norman.Walsh@Sun.COM
version:
   1.0


Field Summary
final public static  intRESOLVER
     The RESOLVER Catalog Entry type.
final public static  intSYSTEMREVERSE
     The SYSTEMREVERSE Catalog Entry type.

This is a bit of a hack.

final public static  intSYSTEMSUFFIX
     The SYSTEMSUFFIX Catalog Entry type.
final public static  intURISUFFIX
     The URISUFFIX Catalog Entry type.


Method Summary
public  voidaddEntry(CatalogEntry entry)
     Cleanup and process a Catalog entry.
protected  ResolverqueryResolver(String resolver, String command, String arg1, String arg2)
     Query an external RFC2483 resolver.
Parameters:
  resolver - The URL of the RFC2483 resolver.
Parameters:
  command - The command to send the resolver.
Parameters:
  arg1 - The first argument to the resolver.
Parameters:
  arg2 - The second argument to the resolver, usually null.
public  VectorresolveAllSystem(String systemId)
     Return the applicable SYSTEM system identifiers.

If one or more SYSTEM entries exists in the Catalog for the system ID specified, return the mapped values.

The caller is responsible for doing any necessary normalization of the system identifier before calling this method.

public  VectorresolveAllSystemReverse(String systemId)
     Find the URNs for a given system identifier in all catalogs.
Parameters:
  systemId - The system ID to locate.
protected  StringresolveExternalPublic(String publicId, String resolver)
     Query an external RFC2483 resolver for a public identifier.
Parameters:
  publicId - The system ID to locate.
Parameters:
  resolver - The name of the resolver to use.
protected  StringresolveExternalSystem(String systemId, String resolver)
     Query an external RFC2483 resolver for a system identifier.
Parameters:
  systemId - The system ID to locate.
Parameters:
  resolver - The name of the resolver to use.
public  StringresolvePublic(String publicId, String systemId)
     Return the applicable PUBLIC or SYSTEM identifier, resorting to external resolvers if necessary.

This method searches the Catalog and returns the system identifier specified for the given system or public identifiers.

public  StringresolveSystem(String systemId)
     Return the applicable SYSTEM system identifier, resorting to external RESOLVERs if necessary.

If a SYSTEM entry exists in the Catalog for the system ID specified, return the mapped value.

In the Resolver (as opposed to the Catalog) class, if the URI isn't found by the usual algorithm, SYSTEMSUFFIX entries are considered.

On Windows-based operating systems, the comparison between the system identifier provided and the SYSTEM entries in the Catalog is case-insensitive.


Parameters:
  systemId - The system ID to locate in the catalog.
public  StringresolveSystemReverse(String systemId)
     Find the URN for a given system identifier.
Parameters:
  systemId - The system ID to locate.
public  StringresolveURI(String uri)
     Return the applicable URI.

If a URI entry exists in the Catalog for the URI specified, return the mapped value.

In the Resolver (as opposed to the Catalog) class, if the URI isn't found by the usual algorithm, URISUFFIX entries are considered.

URI comparison is case sensitive.


Parameters:
  uri - The URI to locate in the catalog.
public  voidsetupReaders()
     Setup readers.

Field Detail
RESOLVER
final public static int RESOLVER(Code)
The RESOLVER Catalog Entry type.

A hook for providing support for web-based backup resolvers.




SYSTEMREVERSE
final public static int SYSTEMREVERSE(Code)
The SYSTEMREVERSE Catalog Entry type.

This is a bit of a hack. There's no actual SYSTEMREVERSE entry, but this entry type is used to indicate that a reverse lookup is being performed. (This allows the Resolver to implement RFC2483 I2N and I2NS.)




SYSTEMSUFFIX
final public static int SYSTEMSUFFIX(Code)
The SYSTEMSUFFIX Catalog Entry type.

System suffix entries match system identifiers that end in a specified suffix.




URISUFFIX
final public static int URISUFFIX(Code)
The URISUFFIX Catalog Entry type.

URI suffix entries match URIs that end in a specified suffix.






Method Detail
addEntry
public void addEntry(CatalogEntry entry)(Code)
Cleanup and process a Catalog entry.

This method processes each Catalog entry, changing mapped relative system identifiers into absolute ones (based on the current base URI), and maintaining other information about the current catalog.


Parameters:
  entry - The CatalogEntry to process.



queryResolver
protected Resolver queryResolver(String resolver, String command, String arg1, String arg2)(Code)
Query an external RFC2483 resolver.
Parameters:
  resolver - The URL of the RFC2483 resolver.
Parameters:
  command - The command to send the resolver.
Parameters:
  arg1 - The first argument to the resolver.
Parameters:
  arg2 - The second argument to the resolver, usually null. The Resolver constructed.



resolveAllSystem
public Vector resolveAllSystem(String systemId) throws MalformedURLException, IOException(Code)
Return the applicable SYSTEM system identifiers.

If one or more SYSTEM entries exists in the Catalog for the system ID specified, return the mapped values.

The caller is responsible for doing any necessary normalization of the system identifier before calling this method. For example, a relative system identifier in a document might be converted to an absolute system identifier before attempting to resolve it.

Note that this function will force all subordinate catalogs to be loaded.

On Windows-based operating systems, the comparison between the system identifier provided and the SYSTEM entries in the Catalog is case-insensitive.


Parameters:
  systemId - The system ID to locate in the catalog. The system identifier to use for the notation.
throws:
  MalformedURLException - The formal system identifier of asubordinate catalog cannot be turned into a valid URL.
throws:
  IOException - Error reading subordinate catalog file.



resolveAllSystemReverse
public Vector resolveAllSystemReverse(String systemId) throws MalformedURLException, IOException(Code)
Find the URNs for a given system identifier in all catalogs.
Parameters:
  systemId - The system ID to locate. A vector of URNs that map to the systemId.



resolveExternalPublic
protected String resolveExternalPublic(String publicId, String resolver) throws MalformedURLException, IOException(Code)
Query an external RFC2483 resolver for a public identifier.
Parameters:
  publicId - The system ID to locate.
Parameters:
  resolver - The name of the resolver to use. The system identifier to use for the systemId.



resolveExternalSystem
protected String resolveExternalSystem(String systemId, String resolver) throws MalformedURLException, IOException(Code)
Query an external RFC2483 resolver for a system identifier.
Parameters:
  systemId - The system ID to locate.
Parameters:
  resolver - The name of the resolver to use. The system identifier to use for the systemId.



resolvePublic
public String resolvePublic(String publicId, String systemId) throws MalformedURLException, IOException(Code)
Return the applicable PUBLIC or SYSTEM identifier, resorting to external resolvers if necessary.

This method searches the Catalog and returns the system identifier specified for the given system or public identifiers. If no appropriate PUBLIC or SYSTEM entry is found in the Catalog, null is returned.

Note that a system or public identifier in the current catalog (or subordinate catalogs) will be used in preference to an external resolver. Further, if a systemId is present, the external resolver(s) will be queried for that before the publicId.


Parameters:
  publicId - The public identifier to locate in the catalog.Public identifiers are normalized before comparison.
Parameters:
  systemId - The nominal system identifier for the entityin question (as provided in the source document).
throws:
  MalformedURLException - The formal system identifier of asubordinate catalog cannot be turned into a valid URL.
throws:
  IOException - Error reading subordinate catalog file. The system identifier to use.Note that the nominal system identifier is not returned if amatch is not found in the catalog, instead null is returnedto indicate that no match was found.



resolveSystem
public String resolveSystem(String systemId) throws MalformedURLException, IOException(Code)
Return the applicable SYSTEM system identifier, resorting to external RESOLVERs if necessary.

If a SYSTEM entry exists in the Catalog for the system ID specified, return the mapped value.

In the Resolver (as opposed to the Catalog) class, if the URI isn't found by the usual algorithm, SYSTEMSUFFIX entries are considered.

On Windows-based operating systems, the comparison between the system identifier provided and the SYSTEM entries in the Catalog is case-insensitive.


Parameters:
  systemId - The system ID to locate in the catalog. The system identifier to use for systemId.
throws:
  MalformedURLException - The formal system identifier of asubordinate catalog cannot be turned into a valid URL.
throws:
  IOException - Error reading subordinate catalog file.



resolveSystemReverse
public String resolveSystemReverse(String systemId) throws MalformedURLException, IOException(Code)
Find the URN for a given system identifier.
Parameters:
  systemId - The system ID to locate. A (single) URN that maps to the systemId.



resolveURI
public String resolveURI(String uri) throws MalformedURLException, IOException(Code)
Return the applicable URI.

If a URI entry exists in the Catalog for the URI specified, return the mapped value.

In the Resolver (as opposed to the Catalog) class, if the URI isn't found by the usual algorithm, URISUFFIX entries are considered.

URI comparison is case sensitive.


Parameters:
  uri - The URI to locate in the catalog. The resolved URI.
throws:
  MalformedURLException - The system identifier of asubordinate catalog cannot be turned into a valid URL.
throws:
  IOException - Error reading subordinate catalog file.



setupReaders
public void setupReaders()(Code)
Setup readers.



Fields inherited from com.sun.org.apache.xml.internal.resolver.Catalog
final public static int BASE(Code)(Java Doc)
final public static int CATALOG(Code)(Java Doc)
final public static int DELEGATE_PUBLIC(Code)(Java Doc)
final public static int DELEGATE_SYSTEM(Code)(Java Doc)
final public static int DELEGATE_URI(Code)(Java Doc)
final public static int DOCTYPE(Code)(Java Doc)
final public static int DOCUMENT(Code)(Java Doc)
final public static int DTDDECL(Code)(Java Doc)
final public static int ENTITY(Code)(Java Doc)
final public static int LINKTYPE(Code)(Java Doc)
final public static int NOTATION(Code)(Java Doc)
final public static int OVERRIDE(Code)(Java Doc)
final public static int PUBLIC(Code)(Java Doc)
final public static int REWRITE_SYSTEM(Code)(Java Doc)
final public static int REWRITE_URI(Code)(Java Doc)
final public static int SGMLDECL(Code)(Java Doc)
final public static int SYSTEM(Code)(Java Doc)
final public static int SYSTEM_SUFFIX(Code)(Java Doc)
final public static int URI(Code)(Java Doc)
final public static int URI_SUFFIX(Code)(Java Doc)
protected URL base(Code)(Java Doc)
protected URL catalogCwd(Code)(Java Doc)
protected Vector catalogEntries(Code)(Java Doc)
protected Vector catalogFiles(Code)(Java Doc)
protected CatalogManager catalogManager(Code)(Java Doc)
protected Vector catalogs(Code)(Java Doc)
protected boolean default_override(Code)(Java Doc)
protected Vector localCatalogFiles(Code)(Java Doc)
protected Vector localDelegate(Code)(Java Doc)
protected Vector readerArr(Code)(Java Doc)
protected Hashtable readerMap(Code)(Java Doc)

Methods inherited from com.sun.org.apache.xml.internal.resolver.Catalog
protected void addDelegate(CatalogEntry entry)(Code)(Java Doc)
public void addEntry(CatalogEntry entry)(Code)(Java Doc)
public void addReader(String mimeType, CatalogReader reader)(Code)(Java Doc)
protected void copyReaders(Catalog newCatalog)(Code)(Java Doc)
protected String encodedByte(int b)(Code)(Java Doc)
protected String fixSlashes(String sysid)(Code)(Java Doc)
public CatalogManager getCatalogManager()(Code)(Java Doc)
public String getCurrentBase()(Code)(Java Doc)
public String getDefaultOverride()(Code)(Java Doc)
public void loadSystemCatalogs() throws MalformedURLException, IOException(Code)(Java Doc)
protected String makeAbsolute(String sysid)(Code)(Java Doc)
protected Catalog newCatalog()(Code)(Java Doc)
protected String normalizeURI(String uriref)(Code)(Java Doc)
public void parseAllCatalogs() throws MalformedURLException, IOException(Code)(Java Doc)
public synchronized void parseCatalog(String fileName) throws MalformedURLException, IOException(Code)(Java Doc)
public synchronized void parseCatalog(String mimeType, InputStream is) throws IOException, CatalogException(Code)(Java Doc)
public synchronized void parseCatalog(URL aUrl) throws IOException(Code)(Java Doc)
protected synchronized void parseCatalogFile(String fileName) throws MalformedURLException, IOException, CatalogException(Code)(Java Doc)
protected synchronized void parsePendingCatalogs() throws MalformedURLException, IOException(Code)(Java Doc)
public String resolveDoctype(String entityName, String publicId, String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
public String resolveDocument() throws MalformedURLException, IOException(Code)(Java Doc)
public String resolveEntity(String entityName, String publicId, String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
protected synchronized String resolveLocalPublic(int entityType, String entityName, String publicId, String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
protected String resolveLocalSystem(String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
protected String resolveLocalURI(String uri) throws MalformedURLException, IOException(Code)(Java Doc)
public String resolveNotation(String notationName, String publicId, String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
public String resolvePublic(String publicId, String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
protected synchronized String resolveSubordinateCatalogs(int entityType, String entityName, String publicId, String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
public String resolveSystem(String systemId) throws MalformedURLException, IOException(Code)(Java Doc)
public String resolveURI(String uri) throws MalformedURLException, IOException(Code)(Java Doc)
public void setCatalogManager(CatalogManager manager)(Code)(Java Doc)
public void setupReaders()(Code)(Java Doc)
public void unknownEntry(Vector strings)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__w___w___.___j__av___a__2s._c__om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.