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

javax.sip.header
Interface Parameters

All Known Subinterfaces:
AcceptEncodingHeader, AcceptHeader, AcceptLanguageHeader, AddressParameters, AlertInfoHeader, AuthenticationInfoHeader, AuthorizationHeader, AuthorizationHeaderIms, CallInfoHeader, ContactHeader, ContentDispositionHeader, ContentTypeHeader, ErrorInfoHeader, EventHeader, FromHeader, JoinHeader, MinSEHeader, PAccessNetworkInfoHeader, PAssociatedURIHeader, PathHeader, PCalledPartyIDHeader, PChargingFunctionAddressesHeader, PChargingVectorHeader, ProxyAuthenticateHeader, ProxyAuthorizationHeader, PUserDatabaseHeader, PVisitedNetworkIDHeader, ReasonHeader, RecordRouteHeader, ReferredByHeader, ReferToHeader, ReplacesHeader, ReplyToHeader, RetryAfterHeader, RouteHeader, SecurityAgreeHeader, SecurityClientHeader, SecurityServerHeader, SecurityVerifyHeader, ServiceRouteHeader, SessionExpiresHeader, SipURI, SubscriptionStateHeader, TelURL, ToHeader, ViaHeader, WWWAuthenticateHeader, WWWAuthenticateHeaderIms
All Known Implementing Classes:
Accept, AcceptEncoding, AcceptLanguage, AddressParametersHeader, AlertInfo, AuthenticationHeader, AuthenticationInfo, Authorization, CallInfo, Contact, ContentDisposition, ContentType, ErrorInfo, Event, From, Join, MinSE, PAccessNetworkInfo, ParametersHeader, PAssertedIdentity, PAssociatedURI, Path, PCalledPartyID, PChargingFunctionAddresses, PChargingVector, PPreferredIdentity, PProfileKey, ProxyAuthenticate, ProxyAuthorization, PServedUser, PUserDatabase, PVisitedNetworkID, Reason, RecordRoute, ReferredBy, ReferTo, Replaces, ReplyTo, RetryAfter, Route, SecurityAgree, SecurityClient, SecurityServer, SecurityVerify, ServiceRoute, SessionExpires, SipUri, SubscriptionState, TelURLImpl, To, Via, WWWAuthenticate

public interface Parameters

This interface defines methods for accessing generic parameters for Headers that contain generic parameter values.

Version:
1.2
Author:
BEA Systems, NIST

Method Summary
 String getParameter(String name)
          Returns the value of the named parameter, or null if it is not set.
 Iterator getParameterNames()
          Returns an Iterator over the names (Strings) of all parameters present in this ParametersHeader.
 void removeParameter(String name)
          Removes the specified parameter from Parameters of this ParametersHeader.
 void setParameter(String name, String value)
          Sets the value of the specified parameter.
 

Method Detail

getParameter

String getParameter(String name)
Returns the value of the named parameter, or null if it is not set. A zero-length String indicates flag parameter.

Parameters:
name - name of parameter to retrieve
Returns:
the value of specified parameter

setParameter

void setParameter(String name,
                  String value)
                  throws ParseException
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 - - a String specifying the parameter name
value - - a String specifying the parameter value
Throws:
ParseException - which signals that an error has been reached unexpectedly while parsing the parameter name or value.

getParameterNames

Iterator getParameterNames()
Returns an Iterator over the names (Strings) of all parameters present in this ParametersHeader.

Returns:
an Iterator over all the parameter names

removeParameter

void removeParameter(String name)
Removes the specified parameter from Parameters of this ParametersHeader. This method returns silently if the parameter is not part of the ParametersHeader.

Parameters:
name - - a String specifying the parameter name

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.