net.sourceforge.jwap.wsp.pdu
Class CWSPAddress
java.lang.Object
|
+--net.sourceforge.jwap.wsp.pdu.CWSPAddress
- public class CWSPAddress
- extends java.lang.Object
Constructor Summary |
CWSPAddress(boolean bearerTypeIncluded,
boolean portNumberIncluded,
short bearerType,
int portNumber,
java.lang.String bearerAddressToUse_IP)
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CWSPAddress
public CWSPAddress(boolean bearerTypeIncluded,
boolean portNumberIncluded,
short bearerType,
int portNumber,
java.lang.String bearerAddressToUse_IP)
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()