net.sourceforge.jwap.wsp.pdu
Class CWSPAddress

java.lang.Object
  |
  +--net.sourceforge.jwap.wsp.pdu.CWSPAddress

public class CWSPAddress
extends java.lang.Object


Field Summary
 long addressLen
           
static int BEARER_TYPE_GSM_CSD
          bearer Types according to WAP-259-WDP-20010614-a only two of them implemented here!
static int BEARER_TYPE_GSM_GPRS
           
 short bearerAddressToUse1
           
 short bearerAddressToUse2
           
 short bearerAddressToUse3
           
 short bearerAddressToUse4
           
 long bearerType
           
 boolean bearerTypeIncluded
           
 long portNumber
           
 boolean portNumberIncluded
           
 
Constructor Summary
CWSPAddress(boolean bearerTypeIncluded, boolean portNumberIncluded, short bearerType, int portNumber, java.lang.String bearerAddressToUse_IP)
           
 
Method Summary
 boolean equals(java.lang.Object a)
          copmpares all fields of the address
 long getAddressLen()
           
 java.lang.String getBearerAddressToUse()
           
 long getBearerType()
           
 boolean getBearerTypeIncluded()
           
 byte[] getBytes()
          get the encoded byte array of the address
 java.net.InetAddress getInetAddress()
           
 long getPortNumber()
           
 boolean getPortNumberIncluded()
           
 CWSPSocketAddress getSocketAddress()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEARER_TYPE_GSM_CSD

public static final int BEARER_TYPE_GSM_CSD
bearer Types according to WAP-259-WDP-20010614-a only two of them implemented here!

BEARER_TYPE_GSM_GPRS

public static final int BEARER_TYPE_GSM_GPRS

bearerTypeIncluded

public boolean bearerTypeIncluded

portNumberIncluded

public boolean portNumberIncluded

addressLen

public long addressLen

bearerType

public long bearerType

portNumber

public long portNumber

bearerAddressToUse1

public short bearerAddressToUse1

bearerAddressToUse2

public short bearerAddressToUse2

bearerAddressToUse3

public short bearerAddressToUse3

bearerAddressToUse4

public short bearerAddressToUse4
Constructor Detail

CWSPAddress

public CWSPAddress(boolean bearerTypeIncluded,
                   boolean portNumberIncluded,
                   short bearerType,
                   int portNumber,
                   java.lang.String bearerAddressToUse_IP)
Method Detail

getBytes

public byte[] getBytes()
get the encoded byte array of the address

equals

public boolean equals(java.lang.Object a)
copmpares all fields of the address
Overrides:
equals in class java.lang.Object

getBearerTypeIncluded

public boolean getBearerTypeIncluded()

getPortNumberIncluded

public boolean getPortNumberIncluded()

getAddressLen

public long getAddressLen()

getBearerType

public long getBearerType()

getPortNumber

public long getPortNumber()

getInetAddress

public java.net.InetAddress getInetAddress()

getSocketAddress

public CWSPSocketAddress getSocketAddress()

getBearerAddressToUse

public java.lang.String getBearerAddressToUse()