ca.intelliware.amakihi.fixture
Class BaseHttpCommunicationHelper

java.lang.Object
  |
  +--ca.intelliware.amakihi.fixture.BaseHttpCommunicationHelper
All Implemented Interfaces:
CommunicationHelper
Direct Known Subclasses:
EJBHttpProxyCommunicationHelper, HttpCommunicationHelper

public abstract class BaseHttpCommunicationHelper
extends java.lang.Object
implements CommunicationHelper


Constructor Summary
BaseHttpCommunicationHelper()
           
 
Method Summary
protected abstract  org.w3c.dom.Document createDocumentFromStream(java.net.URL url, java.io.InputStream inputStream, java.util.Hashtable variables)
           
protected  java.lang.String createEncodedParameter(java.lang.String name, java.lang.String value)
           
protected abstract  NameValuePair[] getHeaders(Script.ResourceDefinition resource, java.lang.String methodName, org.w3c.dom.Element input, java.util.Hashtable variables)
           
protected abstract  java.lang.String getMethod(Script.ResourceDefinition resource, java.lang.String methodName, org.w3c.dom.Element input, java.util.Hashtable variables)
           
protected abstract  NameValuePair[] getParameters(Script.ResourceDefinition resource, java.lang.String methodName, org.w3c.dom.Element input, java.util.Hashtable variables)
           
protected  java.lang.String getQueryString(NameValuePair[] parameters)
           
protected abstract  java.lang.String getUrlAsString(Script.ResourceDefinition resource, java.lang.String methodName, org.w3c.dom.Element input, java.util.Hashtable variables)
           
 org.w3c.dom.Document send(Script.ResourceDefinition resource, java.lang.String methodName, org.w3c.dom.Element input, java.util.Hashtable variables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseHttpCommunicationHelper

public BaseHttpCommunicationHelper()
Method Detail

getHeaders

protected abstract NameValuePair[] getHeaders(Script.ResourceDefinition resource,
                                              java.lang.String methodName,
                                              org.w3c.dom.Element input,
                                              java.util.Hashtable variables)

getMethod

protected abstract java.lang.String getMethod(Script.ResourceDefinition resource,
                                              java.lang.String methodName,
                                              org.w3c.dom.Element input,
                                              java.util.Hashtable variables)

getParameters

protected abstract NameValuePair[] getParameters(Script.ResourceDefinition resource,
                                                 java.lang.String methodName,
                                                 org.w3c.dom.Element input,
                                                 java.util.Hashtable variables)
                                          throws java.io.IOException

getUrlAsString

protected abstract java.lang.String getUrlAsString(Script.ResourceDefinition resource,
                                                   java.lang.String methodName,
                                                   org.w3c.dom.Element input,
                                                   java.util.Hashtable variables)
                                            throws java.io.IOException

send

public org.w3c.dom.Document send(Script.ResourceDefinition resource,
                                 java.lang.String methodName,
                                 org.w3c.dom.Element input,
                                 java.util.Hashtable variables)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Specified by:
send in interface CommunicationHelper

createDocumentFromStream

protected abstract org.w3c.dom.Document createDocumentFromStream(java.net.URL url,
                                                                 java.io.InputStream inputStream,
                                                                 java.util.Hashtable variables)
                                                          throws java.io.IOException,
                                                                 org.xml.sax.SAXException

createEncodedParameter

protected java.lang.String createEncodedParameter(java.lang.String name,
                                                  java.lang.String value)

getQueryString

protected java.lang.String getQueryString(NameValuePair[] parameters)


Copyright 2002 Intelliware Development. All Rights Reserved.