fccsc.manager.data.process
Class Process

java.lang.Object
  |
  +--fccsc.manager.data.process.Process
All Implemented Interfaces:
IMessage
Direct Known Subclasses:
ProcessFEDI, ProcessFXML

public abstract class Process
extends java.lang.Object
implements IMessage


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
Process(java.lang.String p_propertiesFileName)
           
 
Method Summary
 java.lang.String getCallBackIpAddress()
          Returns the "call back" ip address.
 int getCallBackIpPort()
          Returns the "call back" ip port.
 ControlBlock getEDIControlBlock()
          Returns the EDI Control Block parsed from the data.
 org.apache.log4j.Logger getLogger()
          Returns the Logger associated with this object.
 java.util.Properties getProperties()
          Returns the Properties file loaded for this object.
 java.lang.String getRequest()
          Interface Method - Returns the request data that was sent to this process.
 java.lang.String getResponse()
          Interface Method - Returns the response message that this process needs to send back.
 void process()
          Interface Method - Process this message.
 void setCallBackIpAddress(java.lang.String p_ipAddress)
          Sets the "call back" ip address.
 void setCallBackIpPort(int p_ipPort)
          Sets the "call back" ip port.
 void setRequest(java.lang.String p_data)
          Interface Method - Sets the incoming data to process.
 void setResponse(java.lang.String p_data)
          Sets the outgoing response data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

Process

public Process(java.lang.String p_propertiesFileName)
Method Detail

getProperties

public java.util.Properties getProperties()
Returns the Properties file loaded for this object.

Returns:
a properties object.

getEDIControlBlock

public ControlBlock getEDIControlBlock()
Returns the EDI Control Block parsed from the data.

Returns:
edi control block.

getResponse

public java.lang.String getResponse()
                             throws java.lang.Exception
Interface Method - Returns the response message that this process needs to send back.

Specified by:
getResponse in interface IMessage
Returns:
response message.
Throws:
java.lang.Exception

setResponse

public void setResponse(java.lang.String p_data)
                 throws java.lang.Exception
Sets the outgoing response data.

Specified by:
setResponse in interface IMessage
Parameters:
p_data - the response data.
Throws:
java.lang.Exception

getRequest

public java.lang.String getRequest()
                            throws java.lang.Exception
Interface Method - Returns the request data that was sent to this process.

Specified by:
getRequest in interface IMessage
Returns:
the request data.
Throws:
java.lang.Exception

setRequest

public void setRequest(java.lang.String p_data)
                throws java.lang.Exception
Interface Method - Sets the incoming data to process.

Specified by:
setRequest in interface IMessage
Parameters:
p_data - the data to be processed.
Throws:
java.lang.Exception

getLogger

public org.apache.log4j.Logger getLogger()
Returns the Logger associated with this object.

Returns:
a logger object.

process

public void process()
             throws java.lang.Exception
Interface Method - Process this message.

Specified by:
process in interface IMessage
Throws:
java.lang.Exception

getCallBackIpAddress

public java.lang.String getCallBackIpAddress()
Returns the "call back" ip address.

Specified by:
getCallBackIpAddress in interface IMessage
Returns:
a string representation of an ip address (xxx.xxx.xxx.xxx).

setCallBackIpAddress

public void setCallBackIpAddress(java.lang.String p_ipAddress)
Sets the "call back" ip address.

Specified by:
setCallBackIpAddress in interface IMessage
Parameters:
p_ipAddress - a string representation of an ip address (xxx.xxx.xxx.xxx).

getCallBackIpPort

public int getCallBackIpPort()
Returns the "call back" ip port.

Specified by:
getCallBackIpPort in interface IMessage
Returns:
an integer.

setCallBackIpPort

public void setCallBackIpPort(int p_ipPort)
Sets the "call back" ip port.

Specified by:
setCallBackIpPort in interface IMessage
Parameters:
p_ipPort - the ip port.