2008-07-29 1.1.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.1.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.message.Message
POINTER_CHARS
 
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)
           
UdpMessage(byte[] bytes, java.lang.String host, int port)
           
 
Method Summary
 java.lang.String getHost()
          Return the host name.
 int getPort()
          Return the port number.
 void setHost(java.lang.String host)
           
 void setPort(int port)
           
 
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)
Parameters:
bytes - The bytes (byte[]) parameter.
See Also:
UdpMessage(), UdpMessage(byte[],String,int)

UdpMessage

public UdpMessage(byte[] bytes,
                  java.lang.String host,
                  int port)
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)
Parameters:
host - The host (String) parameter.
See Also:
getHost()

setPort

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

2008-07-29 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.4.0.v20080605-1900