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

gov.nist.javax.sip.parser.ims
Class PPreferredServiceParser

java.lang.Object
  extended by gov.nist.core.ParserCore
      extended by gov.nist.javax.sip.parser.Parser
          extended by gov.nist.javax.sip.parser.HeaderParser
              extended by gov.nist.javax.sip.parser.ims.PPreferredServiceParser
All Implemented Interfaces:
TokenTypes

public class PPreferredServiceParser
extends HeaderParser
implements TokenTypes

Author:
aayush.bhatnagar Rancore Technologies Pvt Ltd, Mumbai India. Parse this: P-Preferred-Service: urn:urn-7:3gpp-service.exampletelephony.version1

Field Summary
 
Fields inherited from class gov.nist.core.ParserCore
debug
 
Fields inherited from interface gov.nist.javax.sip.parser.TokenTypes
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACK, ALERT_INFO, ALLOW, ALLOW_EVENTS, ALPHA, AND, AT, AUTHENTICATION_INFO, AUTHORIZATION, BACK_QUOTE, BACKSLASH, BAR, BYE, CALL_ID, CALL_INFO, CANCEL, COLON, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, DIGIT, DOLLAR, DOT, DOUBLEQUOTE, ENCRYPTION, END, EQUALS, ERROR_INFO, EVENT, EXCLAMATION, EXPIRES, FROM, GREATER_THAN, HAT, HIDE, HT, ID, IN_REPLY_TO, INVITE, JOIN_TO, L_CURLY, L_SQUARE_BRACKET, LESS_THAN, LPAREN, MAX_FORWARDS, MESSAGE, MIME_VERSION, MIN_EXPIRES, MINSE_TO, MINUS, NOTIFY, NULL, OPTIONS, ORGANIZATION, P_ACCESS_NETWORK_INFO, P_ASSERTED_IDENTITY, P_ASSERTED_SERVICE, P_ASSOCIATED_URI, P_CALLED_PARTY_ID, P_CHARGING_FUNCTION_ADDRESSES, P_MEDIA_AUTHORIZATION, P_MEDIA_AUTHORIZATION_TOKEN, P_PREFERRED_IDENTITY, P_PREFERRED_SERVICE, P_PROFILE_KEY, P_SERVED_USER, P_USER_DATABASE, P_VECTOR_CHARGING, P_VISITED_NETWORK_ID, PATH, PERCENT, PLUS, POUND, PRIORITY, PRIVACY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, PUBLISH, QUESTION, QUOTE, R_CURLY, R_SQUARE_BRACKET, RACK, REASON, RECORD_ROUTE, REFER_TO, REFERREDBY_TO, REGISTER, REPLACES_TO, REPLY_TO, REQUIRE, RESPONSE_KEY, RETRY_AFTER, ROUTE, RPAREN, RSEQ, SECURITY_CLIENT, SECURITY_SERVER, SECURITY_VERIFY, SEMICOLON, SERVER, SERVICE_ROUTE, SESSIONEXPIRES_TO, SIP, SIP_ETAG, SIP_IF_MATCH, SIPS, SLASH, SP, STAR, START, SUBJECT, SUBSCRIBE, SUBSCRIPTION_STATE, SUPPORTED, TEL, TILDE, TIMESTAMP, TO, UNDERSCORE, UNSUPPORTED, USER_AGENT, VIA, WARNING, WHITESPACE, WWW_AUTHENTICATE
 
Constructor Summary
PPreferredServiceParser(String pps)
           
 
Method Summary
 SIPHeader parse()
          "The URN consists of a hierarchical service identifier or application identifier, with a sequence of labels separated by periods.The left-most label is the most significant one and is called 'top-level service identifier', while names to the right are called 'sub-services' or 'sub-applications'.
 
Methods inherited from class gov.nist.javax.sip.parser.Parser
checkToken
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPreferredServiceParser

public PPreferredServiceParser(String pps)
Method Detail

parse

public SIPHeader parse()
                throws ParseException
"The URN consists of a hierarchical service identifier or application identifier, with a sequence of labels separated by periods.The left-most label is the most significant one and is called 'top-level service identifier', while names to the right are called 'sub-services' or 'sub-applications'. For any given service identifier, labels can be removed right-to-left and the resulting URN is still valid, referring a more generic service, with the exception of the top-level service identifier and possibly the first sub-service or sub-application identifier. Labels cannot be removed beyond a defined basic service, for example, the label w.x may define a service, but the label w may only define an assignment authority for assigning subsequent values and not define a service in its own right. In other words, if a service identifier 'w.x.y.z' exists, the URNs 'w.x' and 'w.x.y' are also valid service identifiers, but w may not be a valid service identifier if it merely defines who is responsible" TODO: PLEASE VALIDATE MY UNDERSTANDING OF THE ABOVE TEXT :)

Overrides:
parse in class HeaderParser
Throws:
ParseException - if there was an error parsing.

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.