Class ExtForwOptions

  • All Implemented Interfaces:
    DataObject, FastSerializable, Serializable

    public final class ExtForwOptions
    extends ForwardingOptions
    implements FastSerializable
    Class ExtForwOptions represents the ASN.1 OCTET STRING type MAP-MS-DataTypes.Ext-ForwOptions. That ASN.1 type was added in R96.

    The API offered by this class is as if the type were specified in ASN.1 as follows.

     Ext-ForwOptions ::= SEQUENCE {
         notificationToForwardingParty BOOLEAN,
         redirectingPresentation       BOOLEAN,
         notificationToCallingParty    BOOLEAN,
         forwardingReason              ForwardingReason
     }
    The class takes care of encoding the field values into a byte-array and decoding field values from a byte-array, the encoded representation being as tabulated below.

    Data Encoding - based on comment in ASN.1 module MAP-MS-DataTypes in 3GPP TS 29.002 V10.0.0 (2010-09) p369
    87654321
    Octet 1Notification to forwarding party?Redirecting presentation?Notification to calling party?0Forwarding reason00
    0 to 4 more octetsReserved for future use

    Field names ending in ? are booleans: 1 for true, 0 for false.
    See Also:
    Serialized Form
    • Constructor Detail

      • ExtForwOptions

        public ExtForwOptions()
        Constructs a new ExtForwOptions object with no fields set.
      • ExtForwOptions

        public ExtForwOptions​(byte[] data)
        Constructs a new ExtForwOptions object from network-encoded data. The data is not decoded and might not be decodable.
        Parameters:
        data - network-encoded data
        Throws:
        NullPointerException - if data is null
      • ExtForwOptions

        public ExtForwOptions​(byte[] data,
                              int start,
                              int len)
        Constructs a new ExtForwOptions object from part of network-encoded data. The part starts at index start and is len bytes long. The data is not decoded and might not be decodable.
        Parameters:
        data - network-encoded data
        start - starting offset of network-encoded data in byte array
        len - default length if not predictable
        Throws:
        NullPointerException - if data is null
        IllegalArgumentException - if len is negative
      • ExtForwOptions

        public ExtForwOptions​(boolean notificationToForwardingParty,
                              boolean redirectingPresentation,
                              boolean notificationToCallingParty,
                              ForwardingOptions.ForwardingReason forwardingReason)
        Constructs a new ExtForwOptions object from given values for all fields.
        Parameters:
        notificationToForwardingParty - Notification to forwarding party
        redirectingPresentation - Redirecting presentation
        notificationToCallingParty - Notification to calling party
        forwardingReason - Forwarding reason
      • ExtForwOptions

        public ExtForwOptions​(DataInput in)
                       throws IOException
        Constructs a new ExtForwOptions object from data deserialized from a stream that was written by toStream(DataOutput).
        Parameters:
        in - the stream to read from
        Throws:
        EOFException - if reading is pre-empted by end-of-file
        IOException - if the data cannot be read