net.ihe.gazelle.proxy.model.message
Class AbstractMessage

java.lang.Object
  extended by net.ihe.gazelle.proxy.model.message.AbstractMessage
Direct Known Subclasses:
DicomMessage, HL7Message, HTTPMessage, RawMessage, SyslogMessage

public abstract class AbstractMessage
extends Object


Field Summary
protected static Charset UTF_8
           
 
Constructor Summary
AbstractMessage()
           
AbstractMessage(Timestamp timestamp, String fromIP, Integer localPort, Integer proxyPort, String toIP, Integer remotePort, ProxySide proxySide)
           
 
Method Summary
 boolean equals(Object obj)
           
abstract  ChannelType getChannelType()
           
 Connection getConnection()
           
 Date getDateReceived()
           
 String getDecodedMessageReceived()
           
 String getFromIP()
           
 Integer getId()
           
 String getInfoGUI()
           
 int getLocalPort()
           
 int getMessageLength()
           
 byte[] getMessageReceived()
           
 String getMessageReceivedAsString()
           
 InputStream getMessageReceivedStream()
           
 String getMessageReceivedWrapped()
           
 org.apache.commons.httpclient.methods.multipart.PartSource getPartSource(String messageType)
           
 int getProxyPort()
           
 ProxySide getProxySide()
           
 int getRemotePort()
           
 String getToIP()
           
 String getWholeMessageReceivedWrapped()
           
 int hashCode()
           
 void setConnection(Connection connection)
           
 void setDateReceived(Date dateReceived)
           
 void setFromIP(String fromIP)
           
 void setId(Integer id)
           
 void setLocalPort(int localPort)
           
 void setMessageReceived(byte[] messageReceived)
           
 void setMessageReceivedAsString(String messageReceived)
           
 void setProxyPort(int proxyPort)
           
 void setProxySide(ProxySide proxySide)
           
 void setRemotePort(int remotePort)
           
 void setToIP(String toIP)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UTF_8

protected static final Charset UTF_8
Constructor Detail

AbstractMessage

public AbstractMessage()

AbstractMessage

public AbstractMessage(Timestamp timestamp,
                       String fromIP,
                       Integer localPort,
                       Integer proxyPort,
                       String toIP,
                       Integer remotePort,
                       ProxySide proxySide)
Method Detail

getMessageReceived

public byte[] getMessageReceived()

setMessageReceived

public void setMessageReceived(byte[] messageReceived)

getMessageReceivedAsString

public String getMessageReceivedAsString()

getChannelType

public abstract ChannelType getChannelType()

setMessageReceivedAsString

public void setMessageReceivedAsString(String messageReceived)

getMessageReceivedWrapped

public String getMessageReceivedWrapped()

getWholeMessageReceivedWrapped

public String getWholeMessageReceivedWrapped()

getDecodedMessageReceived

public String getDecodedMessageReceived()

getInfoGUI

public String getInfoGUI()

getDateReceived

public Date getDateReceived()

setDateReceived

public void setDateReceived(Date dateReceived)

getFromIP

public String getFromIP()

setFromIP

public void setFromIP(String fromIP)

getToIP

public String getToIP()

setToIP

public void setToIP(String toIP)

getLocalPort

public int getLocalPort()

setLocalPort

public void setLocalPort(int localPort)

getProxyPort

public int getProxyPort()

setProxyPort

public void setProxyPort(int proxyPort)

getRemotePort

public int getRemotePort()

setRemotePort

public void setRemotePort(int remotePort)

getId

public Integer getId()

setId

public void setId(Integer id)

getProxySide

public ProxySide getProxySide()

setProxySide

public void setProxySide(ProxySide proxySide)

getConnection

public Connection getConnection()

setConnection

public void setConnection(Connection connection)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getMessageLength

public int getMessageLength()

getMessageReceivedStream

public InputStream getMessageReceivedStream()

getPartSource

public org.apache.commons.httpclient.methods.multipart.PartSource getPartSource(String messageType)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 JBoss. All Rights Reserved.