NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.header.ims
Class PAccessNetworkInfo

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sip.header.SIPObject
          extended by gov.nist.javax.sip.header.SIPHeader
              extended by gov.nist.javax.sip.header.ParametersHeader
                  extended by gov.nist.javax.sip.header.ims.PAccessNetworkInfo
All Implemented Interfaces:
HeaderExt, PAccessNetworkInfoHeader, SIPHeaderNames, Serializable, Cloneable, ExtensionHeader, Header, Parameters

public class PAccessNetworkInfo
extends ParametersHeader
implements PAccessNetworkInfoHeader, ExtensionHeader

P-Access-Network-Info SIP Private Header

Since:
1.2
Author:
Miguel Freitas (IT) PT-Inovacao
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface gov.nist.javax.sip.header.ims.PAccessNetworkInfoHeader
ADSL, ADSL2, ADSL2p, GGGPP_CDMA2000, GGGPP_GERAN, GGGPP_UTRAN_FDD, GGGPP_UTRAN_TDD, GGGPP2_1X, GGGPP2_1XHRPD, GSHDSL, HDSL, HDSL2, IDSL, IEEE_802_11, IEEE_802_11A, IEEE_802_11B, IEEE_802_11G, NAME, RADSL, SDSL, VDSL
 
Fields inherited from interface gov.nist.javax.sip.header.SIPHeaderNames
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE
 
Constructor Summary
PAccessNetworkInfo()
          Public constructor.
PAccessNetworkInfo(String accessTypeVal)
          Constructor.
 
Method Summary
 Object clone()
          Clones this object.
 boolean equals(Object other)
          An introspection based equality predicate for SIPObjects.
 String getAccessType()
           
 String getCGI3GPP()
           
 String getCI3GPP2()
           
 String getDSLLocation()
           
 Object getExtensionAccessInfo()
           
 String getUtranCellID3GPP()
           
 void setAccessType(String accessTypeVal)
          Set the accessTpe
 void setCGI3GPP(String cgi)
           
 void setCI3GPP2(String ci3Gpp2)
           
 void setDSLLocation(String dslLocation)
           
 void setExtensionAccessInfo(Object extendAccessInfo)
          extension-access-info = gen-value gen-value = token / host / quoted-string
 void setParameter(String name, Object value)
          Sets the value of the specified parameter.
 void setUtranCellID3GPP(String utranCellID)
          Set the UtranCellID field.
 void setValue(String value)
          Sets the value parameter of the ExtensionHeader.
 
Methods inherited from class gov.nist.javax.sip.header.ParametersHeader
getNameValue, getParameter, getParameterNames, getParameters, getParameterValue, hasParameter, hasParameters, removeParameter, removeParameters, setParameter, setParameter, setParameters, setQuotedParameter
 
Methods inherited from class gov.nist.javax.sip.header.SIPHeader
encode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toString
 
Methods inherited from class gov.nist.javax.sip.header.SIPObject
dbgPrint, debugDump, debugDump, match
 
Methods inherited from class gov.nist.core.GenericObject
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sip.header.Parameters
getParameter, getParameterNames, removeParameter, setParameter
 
Methods inherited from interface javax.sip.header.ExtensionHeader
getValue
 
Methods inherited from interface javax.sip.header.Header
getName, hashCode, toString
 

Constructor Detail

PAccessNetworkInfo

public PAccessNetworkInfo()
Public constructor.


PAccessNetworkInfo

public PAccessNetworkInfo(String accessTypeVal)
Constructor.

Method Detail

setAccessType

public void setAccessType(String accessTypeVal)
Set the accessTpe

Specified by:
setAccessType in interface PAccessNetworkInfoHeader
Parameters:
accessTypeVal - - access type
Throws:
NullPointerException

getAccessType

public String getAccessType()
Specified by:
getAccessType in interface PAccessNetworkInfoHeader
Returns:
String access type

setCGI3GPP

public void setCGI3GPP(String cgi)
                throws ParseException
Specified by:
setCGI3GPP in interface PAccessNetworkInfoHeader
Parameters:
cgi - -- String CGI value
Throws:
NullPointerException - -- if null argument passed in
ParseException - -- if bad argument passed in.

getCGI3GPP

public String getCGI3GPP()
Specified by:
getCGI3GPP in interface PAccessNetworkInfoHeader
Returns:
String CGI value

setUtranCellID3GPP

public void setUtranCellID3GPP(String utranCellID)
                        throws ParseException
Set the UtranCellID field.

Specified by:
setUtranCellID3GPP in interface PAccessNetworkInfoHeader
Parameters:
utranCellID - -- String UTRAN Cell ID value
Throws:
NullPointerException
ParseException

getUtranCellID3GPP

public String getUtranCellID3GPP()
Specified by:
getUtranCellID3GPP in interface PAccessNetworkInfoHeader
Returns:
String UTRAN Cell ID value

setDSLLocation

public void setDSLLocation(String dslLocation)
                    throws ParseException
Specified by:
setDSLLocation in interface PAccessNetworkInfoHeader
Parameters:
dslLocation - - String with the DSL location value
Throws:
NullPointerException
ParseException

getDSLLocation

public String getDSLLocation()
Specified by:
getDSLLocation in interface PAccessNetworkInfoHeader
Returns:
String DSL location value

setCI3GPP2

public void setCI3GPP2(String ci3Gpp2)
                throws ParseException
Specified by:
setCI3GPP2 in interface PAccessNetworkInfoHeader
Parameters:
ci3Gpp2 - -- String CI 3GPP2 value
Throws:
NullPointerException - -- if arg is null
ParseException - -- if arg is bad.

getCI3GPP2

public String getCI3GPP2()
Specified by:
getCI3GPP2 in interface PAccessNetworkInfoHeader
Returns:
String CI 3GPP2 value

setParameter

public void setParameter(String name,
                         Object value)
Description copied from class: ParametersHeader
Sets the value of the specified parameter. If the parameter already had a value it will be overwritten. A zero-length String indicates flag parameter.

Parameters:
name - -- parameter name
value - -- value of parameter

setExtensionAccessInfo

public void setExtensionAccessInfo(Object extendAccessInfo)
                            throws ParseException
extension-access-info = gen-value gen-value = token / host / quoted-string

Specified by:
setExtensionAccessInfo in interface PAccessNetworkInfoHeader
Parameters:
extendAccessInfo - - extended Access Information
Throws:
ParseException

getExtensionAccessInfo

public Object getExtensionAccessInfo()
Specified by:
getExtensionAccessInfo in interface PAccessNetworkInfoHeader

setValue

public void setValue(String value)
              throws ParseException
Description copied from interface: ExtensionHeader
Sets the value parameter of the ExtensionHeader.

Specified by:
setValue in interface ExtensionHeader
Parameters:
value - - the new value of the ExtensionHeader
Throws:
ParseException - which signals that an error has been reached unexpectedly while parsing the value parameter.

equals

public boolean equals(Object other)
Description copied from class: SIPObject
An introspection based equality predicate for SIPObjects.

Specified by:
equals in interface Header
Overrides:
equals in class SIPObject
Parameters:
other - the other object to test against.
Returns:
true if the objects are euqal and false otherwise

clone

public Object clone()
Description copied from class: gov.nist.core.GenericObject
Clones this object.

Specified by:
clone in interface Header
Overrides:
clone in class ParametersHeader
Returns:
a deep copy of Header

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.