org.mobicents.protocols.smpp.gsm
Class PortAddressing8

java.lang.Object
  extended by org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
      extended by org.mobicents.protocols.smpp.gsm.RecurringHeaderElement
          extended by org.mobicents.protocols.smpp.gsm.PortAddressing8
All Implemented Interfaces:
HeaderElement

public class PortAddressing8
extends RecurringHeaderElement

8-bit port addressing. 3GPP TS 23.040 9.2.3.24.3.

Version:
$Id: PortAddressing8.java 484 2010-02-08 16:08:50Z orank $

Constructor Summary
PortAddressing8()
           
PortAddressing8(int sourcePort, int destPort)
           
 
Method Summary
 int getDestPort()
           
 int getLength()
          Get the total number of octets this header element encodes as excluding the IEI and the IEI-Data-Length fields.
 int getSourcePort()
           
 void setDestPort(int destPort)
           
 void setSourcePort(int sourcePort)
           
 boolean write(int segmentNum, ByteBuffer buffer)
          Encode this header element to the given ByteBuffer.
 
Methods inherited from class org.mobicents.protocols.smpp.gsm.RecurringHeaderElement
isRecurring
 
Methods inherited from class org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
doWrite, equals, isComplete, postProcess, reset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortAddressing8

public PortAddressing8()

PortAddressing8

public PortAddressing8(int sourcePort,
                       int destPort)
Method Detail

getLength

public int getLength()
Description copied from interface: HeaderElement
Get the total number of octets this header element encodes as excluding the IEI and the IEI-Data-Length fields.

Returns:
The number of octets in this header element's IE-Data, which may exceed 140 octets.

write

public boolean write(int segmentNum,
                     ByteBuffer buffer)
Description copied from interface: HeaderElement
Encode this header element to the given ByteBuffer.

Specified by:
write in interface HeaderElement
Overrides:
write in class AbstractHeaderElement

getSourcePort

public int getSourcePort()

setSourcePort

public void setSourcePort(int sourcePort)

getDestPort

public int getDestPort()

setDestPort

public void setDestPort(int destPort)


Copyright © 2011 Mobicents. All Rights Reserved.