ca.intelliware.amakihi.fixture
Class HttpCommunicationHelper

java.lang.Object
  |
  +--ca.intelliware.amakihi.fixture.BaseHttpCommunicationHelper
        |
        +--ca.intelliware.amakihi.fixture.HttpCommunicationHelper
All Implemented Interfaces:
CommunicationHelper

public class HttpCommunicationHelper
extends BaseHttpCommunicationHelper

This class sends HTTP requests to web servers and emulates a virtual browser. It is intended to test web pages.


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

Field Detail

VIRTUAL_BROWSER_KEY

public static final java.lang.String VIRTUAL_BROWSER_KEY
Constructor Detail

HttpCommunicationHelper

public HttpCommunicationHelper()
Method Detail

createDocumentFromStream

protected 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
Overrides:
createDocumentFromStream in class BaseHttpCommunicationHelper
See Also:
BaseHttpCommunicationHelper#createDocumentFromStream(InputStream)

getUrlAsString

protected java.lang.String getUrlAsString(Script.ResourceDefinition resource,
                                          java.lang.String methodName,
                                          org.w3c.dom.Element input,
                                          java.util.Hashtable variables)
                                   throws java.io.IOException
Overrides:
getUrlAsString in class BaseHttpCommunicationHelper
See Also:
BaseHttpCommunicationHelper#getUrlAsString(ResourceDefinition, String, Element, Hashtable)

getPreviouslySavedVirtualBrowser

protected VirtualBrowser getPreviouslySavedVirtualBrowser(java.util.Hashtable variables)
                                                   throws java.lang.IllegalStateException

getParameters

protected NameValuePair[] getParameters(Script.ResourceDefinition resource,
                                        java.lang.String methodName,
                                        org.w3c.dom.Element input,
                                        java.util.Hashtable variables)
Overrides:
getParameters in class BaseHttpCommunicationHelper
See Also:
BaseHttpCommunicationHelper#getParameters(ResourceDefinition, String, Element, Hashtable)

getMethod

protected java.lang.String getMethod(Script.ResourceDefinition resource,
                                     java.lang.String methodName,
                                     org.w3c.dom.Element input,
                                     java.util.Hashtable variables)
Overrides:
getMethod in class BaseHttpCommunicationHelper
See Also:
BaseHttpCommunicationHelper#getMethod(ResourceDefinition, String, Element, Hashtable)

getHeaders

protected NameValuePair[] getHeaders(Script.ResourceDefinition resource,
                                     java.lang.String methodName,
                                     org.w3c.dom.Element input,
                                     java.util.Hashtable variables)
Overrides:
getHeaders in class BaseHttpCommunicationHelper
See Also:
BaseHttpCommunicationHelper#getHeaders(ResourceDefinition, String, Element, Hashtable)


Copyright 2002 Intelliware Development. All Rights Reserved.