1.0.0

org.eclipse.soda.dk.udp.transport
Class UdpMessage

java.lang.Object
  extended by org.eclipse.soda.dk.message.Message
      extended by org.eclipse.soda.dk.udp.transport.UdpMessage
All Implemented Interfaces:
java.lang.Cloneable, MessageService

public class UdpMessage
extends Message

The UdpMessage contains data specific to the udp protocol, such as the port and host. A UdpMessage that should only be used in conjuntion with a UdpTransport.

Version:
1.0.0

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.message.service.MessageService
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, STRING, THREAD_PRIORITY
 
Constructor Summary
UdpMessage()
          Constructor for UdpMessage.
UdpMessage(byte[] bytes)
          Constructor for UdpMessage.
UdpMessage(byte[] bytes, java.lang.String host, int port)
          Constructs an instance of this class from the specified bytes, host and port parameters.
 
Method Summary
 java.lang.String getHost()
          Return the host name.
 int getPort()
          Return the port number.
 void setHost(java.lang.String host)
          Set the host name.
 void setPort(int port)
          Set the port number.
 
Methods inherited from class org.eclipse.soda.dk.message.Message
clone, decodeMessage, decodeMessage, encodeMessage, encodeMessage, equals, get, getBoolean, getByte, getBytes, getData, getDataBytes, getDataLength, getDataOffset, getInt, getIntByte, getIntByte, getKey, getLittleEndianInt, getLittleEndianLong, getLong, getLongByte, getLongByte, getParameter, getPriority, getShort, hashCode, isBigEndian, length, lookup, matches, put, setBoolean, setByte, setBytes, setData, setInt, setLong, setShort, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UdpMessage

public UdpMessage()
Constructor for UdpMessage.

See Also:
UdpMessage(byte[]), UdpMessage(byte[],String,int)

UdpMessage

public UdpMessage(byte[] bytes)
Constructor for UdpMessage. The bytes (byte[]) parameter.

Parameters:
bytes - The bytes (byte[]) parameter.
See Also:
UdpMessage(), UdpMessage(byte[],String,int)

UdpMessage

public UdpMessage(byte[] bytes,
                  java.lang.String host,
                  int port)
Constructs an instance of this class from the specified bytes, host and port parameters. The bytes (byte[]) parameter. The host (String) parameter. The port (int) parameter.

Parameters:
bytes - The bytes (byte[]) parameter.
host - The host (String) parameter.
port - The port (int) parameter.
See Also:
UdpMessage(), UdpMessage(byte[])
Method Detail

getHost

public java.lang.String getHost()
Return the host name.

Returns:
Results of the get host (String) value.
See Also:
setHost(String)

getPort

public int getPort()
Return the port number.

Returns:
Results of the get port (int) value.
See Also:
setPort(int)

setHost

public void setHost(java.lang.String host)
Set the host name. The host (String) parameter.

Parameters:
host - The host (String) parameter.
See Also:
getHost()

setPort

public void setPort(int port)
Set the port number. The port (int) parameter.

Parameters:
port - The port (int) parameter.
See Also:
getPort()

1.0.0

Copyright (c) 1999, 2007 IBM