solar.service.transport
Class Header

java.lang.Object
  |
  +--solar.service.transport.Header
All Implemented Interfaces:
java.io.Serializable, SolarConstants

public class Header
extends java.lang.Object
implements java.io.Serializable, SolarConstants

The header for each ADU sent or received.

Version:
$Id: Header.java,v 1.2 2003/10/05 18:51:02 glchen Exp $
Author:
Guanling Chen
See Also:
Serialized Form

Field Summary
protected  Address _dest
           
protected  Id _multiplex
           
protected  Address _src
           
private static long serialVersionUID
           
 
Fields inherited from interface solar.SolarConstants
ADVERTISEMENT_SVID, ATTRIBUTE_RECORD_SVID, ATTRIBUTE_SVID, FILTER_CONFIG_SVID, FILTER_SPEC_SVID, GRAPH_SPEC_SVID, GUID_SVID, HEADER_SVID, ID_SVID, NAME_RECORD_SVID, PACK_POLICY_SVID, PIPE_SPEC_SVID, REQUEST_SVID, RPCACK_SVID
 
Constructor Summary
Header()
           
Header(Id multiplex)
           
 
Method Summary
 Address getDestination()
           
 Id getMultiplexId()
           
 Address getSource()
           
 void read(java.io.DataInputStream in)
           
 void read(java.io.ObjectInputStream in)
           
 void setDestination(Address dest)
           
 void setMultiplexId(Id multiplex)
           
 void setSource(Address src)
           
 java.lang.String toString()
           
 void write(java.io.DataOutputStream out)
           
 void write(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

_multiplex

protected Id _multiplex

_src

protected Address _src

_dest

protected Address _dest
Constructor Detail

Header

public Header()

Header

public Header(Id multiplex)
Method Detail

getMultiplexId

public Id getMultiplexId()

setMultiplexId

public void setMultiplexId(Id multiplex)

getDestination

public Address getDestination()

setDestination

public void setDestination(Address dest)

getSource

public Address getSource()

setSource

public void setSource(Address src)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

write

public void write(java.io.DataOutputStream out)
           throws java.io.IOException
java.io.IOException

read

public void read(java.io.DataInputStream in)
          throws java.io.IOException
java.io.IOException

write

public void write(java.io.ObjectOutputStream out)
           throws java.io.IOException
java.io.IOException

read

public void read(java.io.ObjectInputStream in)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException