Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.chiba.xml.xforms.connector.http
Class HTTPURIResolver  view HTTPURIResolver download HTTPURIResolver.java

java.lang.Object
  extended byorg.chiba.xml.xforms.connector.AbstractConnector
      extended byorg.chiba.xml.xforms.connector.http.AbstractHTTPConnector
          extended byorg.chiba.xml.xforms.connector.http.HTTPURIResolver
All Implemented Interfaces:
org.chiba.xml.xforms.connector.Connector, org.chiba.xml.xforms.connector.URIResolver

public class HTTPURIResolver
extends AbstractHTTPConnector
implements org.chiba.xml.xforms.connector.URIResolver

This class resolves http URIs. It treats the denoted http resource as XML and returns the parsed response.

If the specified URI contains a fragment part, the specified element is looked up via the getElementById. Thus, the parsed response must have an internal DTD subset specifiyng all ID attribute. Otherwise the element would not be found.

Version:
$Id: HTTPURIResolver.java,v 1.6 2003/10/01 21:22:13 joernt Exp $

Field Summary
private static org.apache.log4j.Category LOGGER
          The logger.
 
Fields inherited from class org.chiba.xml.xforms.connector.http.AbstractHTTPConnector
 
Fields inherited from class org.chiba.xml.xforms.connector.AbstractConnector
 
Constructor Summary
HTTPURIResolver()
           
 
Method Summary
 java.lang.Object resolve()
          Performs link traversal of the http URI and returns the result as a DOM document.
 
Methods inherited from class org.chiba.xml.xforms.connector.http.AbstractHTTPConnector
get, getResponseBody, getResponseHeader, post, put
 
Methods inherited from class org.chiba.xml.xforms.connector.AbstractConnector
getURI, getURIWithoutFragment, setURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.chiba.xml.xforms.connector.Connector
setURI
 

Field Detail

LOGGER

private static org.apache.log4j.Category LOGGER
The logger.

Constructor Detail

HTTPURIResolver

public HTTPURIResolver()
Method Detail

resolve

public java.lang.Object resolve()
                         throws org.chiba.xml.xforms.exception.XFormsLinkException
Performs link traversal of the http URI and returns the result as a DOM document.

Specified by:
resolve in interface org.chiba.xml.xforms.connector.URIResolver