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 HTTPSubmissionDriver  view HTTPSubmissionDriver download HTTPSubmissionDriver.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.HTTPSubmissionDriver
All Implemented Interfaces:
org.chiba.xml.xforms.connector.Connector, org.chiba.xml.xforms.connector.SubmissionDriver

public class HTTPSubmissionDriver
extends AbstractHTTPConnector
implements org.chiba.xml.xforms.connector.SubmissionDriver

The HTTP submission driver serializes and submits instance data over HTTP/1.1.

Currently, the driver supports the post and put submission methods. Support for get, form-data-post and urlencoded-post as suggested in 11.2 Submission Options is on the way.

Maybe security functionality will be added later, thus becoming a HTTPS driver.

See the '/web/forms/action.xml'-form for examples how to use HTTP submission.

Version:
$Id: HTTPSubmissionDriver.java,v 1.5 2003/09/04 23:07:55 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
HTTPSubmissionDriver()
           
 
Method Summary
 java.util.Map submit(org.chiba.xml.xforms.Submission submission, org.w3c.dom.Node instance)
          Serializes and submits the specified instance data over the http protocol.
private  java.lang.String toXML(org.w3c.dom.Node instance)
           
 
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 final org.apache.log4j.Category LOGGER
The logger.

Constructor Detail

HTTPSubmissionDriver

public HTTPSubmissionDriver()
Method Detail

submit

public java.util.Map submit(org.chiba.xml.xforms.Submission submission,
                            org.w3c.dom.Node instance)
                     throws org.chiba.xml.xforms.exception.XFormsException
Serializes and submits the specified instance data over the http protocol.

Specified by:
submit in interface org.chiba.xml.xforms.connector.SubmissionDriver

toXML

private java.lang.String toXML(org.w3c.dom.Node instance)
                        throws java.lang.Exception