org.openeai.implementations.gateways.requestproxy
Class ProxyCommandImpl

java.lang.Object
  |
  +--org.openeai.OpenEaiObject
        |
        +--org.openeai.implementations.gateways.requestproxy.ProxyCommandImpl
Direct Known Subclasses:
CollegeOfMedicineProxyCommand

public class ProxyCommandImpl
extends OpenEaiObject

This is the parent class of all ProxyCommands. These commands are Java components that are used to execute specific business logic associated to a given proxy.

Version:
3.0 beta2 - 28 January 2003
Author:
Tod Jackson (tod@openeai.org), Steve Wheat (steve@openeai.org)

Field Summary
 
Fields inherited from class org.openeai.OpenEaiObject
logger
 
Constructor Summary
ProxyCommandImpl()
          Constructor
 
Method Summary
protected  Error buildError(java.lang.String errType, java.lang.String errNumber, java.lang.String errDescription)
          Builds a single Error object that can be added to the ArrayList of errors (or for any other reason) to pass to the publishSyncError method.
protected  Result buildResult(org.jdom.Element senderControlArea)
           
protected  Result buildResultWithErrors(java.util.ArrayList errors)
           
protected  Result buildResultWithErrors(java.util.ArrayList errors, java.lang.Throwable e)
           
 AppConfig getAppConfig()
          Get AppConfig associated to this command.
protected  org.jdom.Element getControlArea(org.jdom.Element root)
          This method looks at the document and returns the appropriate ControlArea.
protected  boolean getInboundXmlValidation()
          Get inbound xml validation.
protected  boolean getOutboundXmlValidation()
          Get outbound xml validation.
protected  void setAppConfig(AppConfig aConfig)
          Set AppConfig associated to this command.
protected  void setInboundXmlValidation(boolean validate)
          Set inbound xml validation.
protected  void setOutboundXmlValidation(boolean validate)
          Set outbound xml validation.
 
Methods inherited from class org.openeai.OpenEaiObject
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyCommandImpl

public ProxyCommandImpl()
Constructor

Method Detail

setInboundXmlValidation

protected void setInboundXmlValidation(boolean validate)
Set inbound xml validation. This is used to determine whether or not to validate the xml document as when it's first consumed. It is called in the constructor of AitsCommand.


getInboundXmlValidation

protected boolean getInboundXmlValidation()
Get inbound xml validation. This is used to determine whether or not to validate the xml document as when it's first consumed.

Returns:
boolean

setOutboundXmlValidation

protected void setOutboundXmlValidation(boolean validate)
Set outbound xml validation. This is used to determine whether or not to validate the xml document before it's returned or routed. It is called in the constructor of AitsCommand.


getOutboundXmlValidation

protected boolean getOutboundXmlValidation()
Get outbound xml validation. This is used to determine whether or not to validate the xml document before it's returned or routed. It is called by commands...

Returns:
boolean

setAppConfig

protected void setAppConfig(AppConfig aConfig)
Set AppConfig associated to this command. It is called in the constructor of AitsCommand.


getAppConfig

public AppConfig getAppConfig()
Get AppConfig associated to this command. It is called by commands.

Returns:
AppConfig

getControlArea

protected org.jdom.Element getControlArea(org.jdom.Element root)
This method looks at the document and returns the appropriate ControlArea. Since there can be three different control areas based on the message (ControlAreaRequest, ControlAreaReply and ControlAreaSync) we need to have some intelligence built in when retrieving the element from the document. Clients should never need to call this method directly.

Parameters:
root - org.jdom.Element the root element of the document
Returns:
Element the ControlArea element (may be ControlAreaRequest, ControlAreaReply or ControlAreaSync depending on the doc)

buildResult

protected Result buildResult(org.jdom.Element senderControlArea)

buildResultWithErrors

protected Result buildResultWithErrors(java.util.ArrayList errors)

buildResultWithErrors

protected Result buildResultWithErrors(java.util.ArrayList errors,
                                       java.lang.Throwable e)

buildError

protected Error buildError(java.lang.String errType,
                           java.lang.String errNumber,
                           java.lang.String errDescription)
Builds a single Error object that can be added to the ArrayList of errors (or for any other reason) to pass to the publishSyncError method.

Returns:
edu.uillinois.aits.arch.enterprise.moa.objects.Error the error object that gets built.


Copyright © 2002, OpenEAI Software Foundation