org.mobicents.protocols.smpp.gsm
Class RecurringHeaderElement

java.lang.Object
  extended by org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
      extended by org.mobicents.protocols.smpp.gsm.RecurringHeaderElement
All Implemented Interfaces:
HeaderElement
Direct Known Subclasses:
ConcatenatedSms, PortAddressing16, PortAddressing8

public abstract class RecurringHeaderElement
extends AbstractHeaderElement

Class representing a header element that may recur in multiple segments. Concatenation information must always occur across each segment so that the segments can be reassembled. Most other header elements do not recur, however the specification does allow some elements to optionally recur, such as port addressing.

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

Constructor Summary
RecurringHeaderElement(boolean recur)
          Create a new recurring header element.
 
Method Summary
 boolean isRecurring()
          Determine if this header element should be included in the header of each message in a concatenated message.
 
Methods inherited from class org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
doWrite, equals, isComplete, postProcess, reset, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mobicents.protocols.smpp.gsm.HeaderElement
getLength
 

Constructor Detail

RecurringHeaderElement

public RecurringHeaderElement(boolean recur)
Create a new recurring header element.

Parameters:
recur - true if this header element recurs in multiple segments, false if it should only occur once.
Method Detail

isRecurring

public boolean isRecurring()
Description copied from interface: HeaderElement
Determine if this header element should be included in the header of each message in a concatenated message. For example, concatenation information must appear in every segment. Usually, other header element implementations will simply return false from here.

Specified by:
isRecurring in interface HeaderElement
Overrides:
isRecurring in class AbstractHeaderElement
Returns:
true if this header element will be included in each message of a concatenated message, false if it only needs to occur in one segment.


Copyright © 2011 Mobicents. All Rights Reserved.