public class HeaderFactoryImpl extends Object implements HeaderFactory, HeaderFactoryExt
| Constructor and Description |
|---|
HeaderFactoryImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AcceptEncodingHeader |
createAcceptEncodingHeader(String encoding)
Creates a new AcceptEncodingHeader based on the newly supplied encoding
value.
|
AcceptHeader |
createAcceptHeader(String contentType,
String contentSubType)
Creates a new AcceptHeader based on the newly supplied contentType and
contentSubType values.
|
AcceptLanguageHeader |
createAcceptLanguageHeader(Locale language)
Creates a new AcceptLanguageHeader based on the newly supplied
language value.
|
AlertInfoHeader |
createAlertInfoHeader(URI alertInfo)
Creates a new AlertInfoHeader based on the newly supplied alertInfo value.
|
AllowEventsHeader |
createAllowEventsHeader(String eventType)
Creates a new AllowEventsHeader based on the newly supplied event type
value.
|
AllowHeader |
createAllowHeader(String method)
Creates a new AllowHeader based on the newly supplied method value.
|
AuthenticationInfoHeader |
createAuthenticationInfoHeader(String response)
Creates a new AuthenticationInfoHeader based on the newly supplied
response value.
|
AuthorizationHeader |
createAuthorizationHeader(String scheme)
Creates a new AuthorizationHeader based on the newly supplied
scheme value.
|
CallIdHeader |
createCallIdHeader(String callId)
Creates a new CallIdHeader based on the newly supplied callId value.
|
CallInfoHeader |
createCallInfoHeader(URI callInfo)
Creates a new CallInfoHeader based on the newly supplied callInfo value.
|
PChargingVectorHeader |
createChargingVectorHeader(String icid)
P-Charging-Vector header
|
ContactHeader |
createContactHeader()
Creates a new wildcard ContactHeader.
|
ContactHeader |
createContactHeader(Address address)
Creates a new ContactHeader based on the newly supplied address value.
|
ContentDispositionHeader |
createContentDispositionHeader(String contentDisposition)
Creates a new ContentDispositionHeader based on the newly supplied
contentDisposition value.
|
ContentEncodingHeader |
createContentEncodingHeader(String encoding)
Creates a new ContentEncodingHeader based on the newly supplied encoding
value.
|
ContentLanguageHeader |
createContentLanguageHeader(Locale contentLanguage)
Creates a new ContentLanguageHeader based on the newly supplied
contentLanguage value.
|
ContentLengthHeader |
createContentLengthHeader(int contentLength)
Creates a new CSeqHeader based on the newly supplied contentLength value.
|
ContentTypeHeader |
createContentTypeHeader(String contentType,
String contentSubType)
Creates a new ContentTypeHeader based on the newly supplied contentType and
contentSubType values.
|
CSeqHeader |
createCSeqHeader(int sequenceNumber,
String method)
Deprecated.
|
CSeqHeader |
createCSeqHeader(long sequenceNumber,
String method)
Creates a new CSeqHeader based on the newly supplied sequence number and
method values.
|
DateHeader |
createDateHeader(Calendar date)
Creates a new DateHeader based on the newly supplied date value.
|
ErrorInfoHeader |
createErrorInfoHeader(URI errorInfo)
Creates a new ErrorInfoHeader based on the newly
supplied errorInfo value.
|
EventHeader |
createEventHeader(String eventType)
Creates a new EventHeader based on the newly supplied eventType value.
|
ExpiresHeader |
createExpiresHeader(int expires)
Creates a new ExpiresHeader based on the newly supplied expires value.
|
ExtensionHeader |
createExtensionHeader(String name,
String value)
Creates a new ExtensionHeader based on the newly supplied name and
value values.
|
FromHeader |
createFromHeader(Address address,
String tag)
Creates a new FromHeader based on the newly supplied address and
tag values.
|
Header |
createHeader(String headerText)
Create a header from the given header text.
|
Header |
createHeader(String headerName,
String headerValue)
Create and parse a header.
|
List |
createHeaders(String headers)
Create and return a list of headers.
|
InReplyToHeader |
createInReplyToHeader(String callId)
Creates a new InReplyToHeader based on the newly supplied callId
value.
|
JoinHeader |
createJoinHeader(String callId,
String toTag,
String fromTag)
Create a Join header with a call Id, to and from tag.
|
MaxForwardsHeader |
createMaxForwardsHeader(int maxForwards)
Creates a new MaxForwardsHeader based on the newly
supplied maxForwards value.
|
MimeVersionHeader |
createMimeVersionHeader(int majorVersion,
int minorVersion)
Creates a new MimeVersionHeader based on the newly
supplied mimeVersion value.
|
MinExpiresHeader |
createMinExpiresHeader(int minExpires)
Creates a new MinExpiresHeader based on the newly supplied minExpires value.
|
ExtensionHeader |
createMinSEHeader(int expires)
Creates a new MinSEHeader based on the newly supplied expires value.
|
OrganizationHeader |
createOrganizationHeader(String organization)
Creates a new OrganizationHeader based on the newly supplied
organization value.
|
PAccessNetworkInfoHeader |
createPAccessNetworkInfoHeader()
creates a P-Access-Network-Info header
|
PAssertedIdentityHeader |
createPAssertedIdentityHeader(Address address)
P-Asserted-Identity header
|
PAssertedServiceHeader |
createPAssertedServiceHeader()
Create an AssertedService Header
|
PAssociatedURIHeader |
createPAssociatedURIHeader(Address assocURI)
Creates a new P-Associated-URI header based on the supplied address
|
PathHeader |
createPathHeader(Address address)
PATH header
|
PCalledPartyIDHeader |
createPCalledPartyIDHeader(Address address)
P-Called-Party-ID header
|
PChargingFunctionAddressesHeader |
createPChargingFunctionAddressesHeader()
P-Charging-Function-Addresses header
|
PMediaAuthorizationHeader |
createPMediaAuthorizationHeader(String token)
P-Media-Authorization header
|
PPreferredIdentityHeader |
createPPreferredIdentityHeader(Address address)
P-Preferred-Identity header
|
PPreferredServiceHeader |
createPPreferredServiceHeader()
Create a P-Preferred-Service header.
|
PProfileKeyHeader |
createPProfileKeyHeader(Address address)
Create a P-Profile-Key header.
|
PriorityHeader |
createPriorityHeader(String priority)
Creates a new PriorityHeader based on the newly supplied priority value.
|
PrivacyHeader |
createPrivacyHeader(String privacyType)
Privacy header
|
ProxyAuthenticateHeader |
createProxyAuthenticateHeader(String scheme)
Creates a new ProxyAuthenticateHeader based on the newly supplied
scheme value.
|
ProxyAuthorizationHeader |
createProxyAuthorizationHeader(String scheme)
Creates a new ProxyAuthorizationHeader based on the newly supplied
scheme value.
|
ProxyRequireHeader |
createProxyRequireHeader(String optionTag)
Creates a new ProxyRequireHeader based on the newly supplied optionTag
value.
|
PServedUserHeader |
createPServedUserHeader(Address address)
Create a P-Served-User header.
|
PUserDatabaseHeader |
createPUserDatabaseHeader(String databaseName)
Create a P-User-Database header.
|
PVisitedNetworkIDHeader |
createPVisitedNetworkIDHeader()
P-Visited-Network-ID header
|
RAckHeader |
createRAckHeader(int rSeqNumber,
int cSeqNumber,
String method)
Deprecated.
|
RAckHeader |
createRAckHeader(long rSeqNumber,
long cSeqNumber,
String method)
Creates a new RAckHeader based on the newly supplied rSeqNumber,
cSeqNumber and method values.
|
ReasonHeader |
createReasonHeader(String protocol,
int cause,
String text)
Creates a new ReasonHeader based on the newly supplied reason value.
|
RecordRouteHeader |
createRecordRouteHeader(Address address)
Creates a new RecordRouteHeader based on the newly supplied address value.
|
ReferencesHeader |
createReferencesHeader(String callId,
String rel)
Create and return a references header.
|
ReferredByHeader |
createReferredByHeader(Address address)
Create a ReferredBy Header.
|
ReferToHeader |
createReferToHeader(Address address)
Create a ReferTo Header.
|
ReplacesHeader |
createReplacesHeader(String callId,
String toTag,
String fromTag)
Create a Replaces header with a call Id, to and from tag.
|
ReplyToHeader |
createReplyToHeader(Address address)
Creates a new ReplyToHeader based on the newly supplied address value.
|
SipRequestLine |
createRequestLine(String requestLine)
Create a new Request Line from a String.
|
RequireHeader |
createRequireHeader(String optionTag)
Creates a new RequireHeader based on the newly supplied optionTag
value.
|
RetryAfterHeader |
createRetryAfterHeader(int retryAfter)
Creates a new RetryAfterHeader based on the newly supplied retryAfter
value.
|
RouteHeader |
createRouteHeader(Address address)
Creates a new RouteHeader based on the newly supplied address value.
|
RSeqHeader |
createRSeqHeader(int sequenceNumber)
Deprecated.
|
RSeqHeader |
createRSeqHeader(long sequenceNumber)
Creates a new RSeqHeader based on the newly supplied sequenceNumber value.
|
SecurityClientHeader |
createSecurityClientHeader()
Security-Client header
|
SecurityServerHeader |
createSecurityServerHeader()
Security-Server header
|
SecurityVerifyHeader |
createSecurityVerifyHeader()
Security-Verify header
|
ServerHeader |
createServerHeader(List product)
Creates a new ServerHeader based on the newly supplied product value.
|
ServiceRouteHeader |
createServiceRouteHeader(Address address)
Service-Route header
|
SessionExpiresHeader |
createSessionExpiresHeader(int expires)
Creates a new SessionExpiresHeader based on the newly supplied expires value.
|
SIPETagHeader |
createSIPETagHeader(String etag)
Creates a new SIP-ETag header with the supplied tag value
|
SIPIfMatchHeader |
createSIPIfMatchHeader(String etag)
Creates a new SIP-If-Match header with the supplied tag value
|
SipStatusLine |
createStatusLine(String statusLine)
Create a new StatusLine from a String.
|
SubjectHeader |
createSubjectHeader(String subject)
Creates a new SubjectHeader based on the newly supplied subject value.
|
SubscriptionStateHeader |
createSubscriptionStateHeader(String subscriptionState)
Creates a new SubscriptionStateHeader based on the newly supplied
subscriptionState value.
|
SupportedHeader |
createSupportedHeader(String optionTag)
Creates a new SupportedHeader based on the newly supplied optionTag
value.
|
TimeStampHeader |
createTimeStampHeader(float timeStamp)
Creates a new TimeStampHeader based on the newly supplied timeStamp value.
|
ToHeader |
createToHeader(Address address,
String tag)
Creates a new ToHeader based on the newly supplied address and
tag values.
|
UnsupportedHeader |
createUnsupportedHeader(String optionTag)
Creates a new UnsupportedHeader based on the newly supplied optionTag
value.
|
UserAgentHeader |
createUserAgentHeader(List product)
Creates a new UserAgentHeader based on the newly supplied product value.
|
ViaHeader |
createViaHeader(String host,
int port,
String transport,
String branch)
Creates a new ViaHeader based on the newly supplied uri and branch values.
|
WarningHeader |
createWarningHeader(String agent,
int code,
String comment)
Creates a new WarningHeader based on the newly supplied
agent, code and comment values.
|
WWWAuthenticateHeader |
createWWWAuthenticateHeader(String scheme)
Creates a new WWWAuthenticateHeader based on the newly supplied
scheme value.
|
void |
setPrettyEncoding(boolean flag)
Set pretty encoding on / off.
|
public void setPrettyEncoding(boolean flag)
public AcceptEncodingHeader createAcceptEncodingHeader(String encoding) throws ParseException
createAcceptEncodingHeader in interface HeaderFactoryencoding - - the new string containing the encoding value.ParseException - which signals that an error has been reached
unexpectedly while parsing the encoding value.public AcceptHeader createAcceptHeader(String contentType, String contentSubType) throws ParseException
createAcceptHeader in interface HeaderFactorycontentType - The new string content type value.contentSubType - The new string content sub-type value.ParseException - which signals that an error has been reached
unexpectedly while parsing the content type or content subtype value.public AcceptLanguageHeader createAcceptLanguageHeader(Locale language)
createAcceptLanguageHeader in interface HeaderFactorylanguage - - the new Locale value of the languagepublic AlertInfoHeader createAlertInfoHeader(URI alertInfo)
createAlertInfoHeader in interface HeaderFactoryalertInfo - - the new URI value of the alertInfopublic AllowEventsHeader createAllowEventsHeader(String eventType) throws ParseException
createAllowEventsHeader in interface HeaderFactoryeventType - - the new string containing the eventType value.ParseException - which signals that an error has been reached
unexpectedly while parsing the eventType value.public AllowHeader createAllowHeader(String method) throws ParseException
createAllowHeader in interface HeaderFactorymethod - - the new string containing the method value.ParseException - which signals that an error has been reached
unexpectedly while parsing the method value.public AuthenticationInfoHeader createAuthenticationInfoHeader(String response) throws ParseException
createAuthenticationInfoHeader in interface HeaderFactoryresponse - - the new string value of the response.ParseException - which signals that an error has been reached
unexpectedly while parsing the response value.public AuthorizationHeader createAuthorizationHeader(String scheme) throws ParseException
createAuthorizationHeader in interface HeaderFactoryscheme - - the new string value of the scheme.ParseException - which signals that an error has been reached
unexpectedly while parsing the scheme value.public CSeqHeader createCSeqHeader(long sequenceNumber, String method) throws ParseException, InvalidArgumentException
createCSeqHeader in interface HeaderFactorysequenceNumber - - the new integer value of the sequence number.method - - the new string value of the method.InvalidArgumentException - if supplied sequence number is less
than zero.ParseException - which signals that an error has been reached
unexpectedly while parsing the method value.public CSeqHeader createCSeqHeader(int sequenceNumber, String method) throws ParseException, InvalidArgumentException
createCSeqHeader in interface HeaderFactorysequenceNumber - the new integer value of the sequence number.method - the new string value of the method.ParseException - which signals that an error has been reached
unexpectedly while parsing the method value.InvalidArgumentException - if supplied sequence number is less
than zero.public CallIdHeader createCallIdHeader(String callId) throws ParseException
createCallIdHeader in interface HeaderFactorycallId - - the new string value of the call-id.ParseException - which signals that an error has been reached
unexpectedly while parsing the callId value.public CallInfoHeader createCallInfoHeader(URI callInfo)
createCallInfoHeader in interface HeaderFactorycallInfo - The new string value of the callInfo.public ContactHeader createContactHeader(Address address)
createContactHeader in interface HeaderFactoryaddress - - the new Address value of the address.public ContactHeader createContactHeader()
ContactHeader.getAddress.getAddress.getUserInfo() == *;
ContactHeader.getAddress.getAddress.isWildCard() == true;
ContactHeader.getExpires() == 0;
createContactHeader in interface HeaderFactorypublic ContentDispositionHeader createContentDispositionHeader(String contentDisposition) throws ParseException
createContentDispositionHeader in interface HeaderFactorycontentDisposition - - the new string value of the contentDisposition.ParseException - which signals that an error has been reached
unexpectedly while parsing the contentDisposition value.public ContentEncodingHeader createContentEncodingHeader(String encoding) throws ParseException
createContentEncodingHeader in interface HeaderFactoryencoding - - the new string containing the encoding value.ParseException - which signals that an error has been reached
unexpectedly while parsing the encoding value.public ContentLanguageHeader createContentLanguageHeader(Locale contentLanguage)
createContentLanguageHeader in interface HeaderFactorycontentLanguage - - the new Locale value of the contentLanguage.public ContentLengthHeader createContentLengthHeader(int contentLength) throws InvalidArgumentException
createContentLengthHeader in interface HeaderFactorycontentLength - - the new integer value of the contentLength.InvalidArgumentException - if supplied contentLength is less
than zero.public ContentTypeHeader createContentTypeHeader(String contentType, String contentSubType) throws ParseException
createContentTypeHeader in interface HeaderFactorycontentType - - the new string content type value.contentSubType - - the new string content sub-type value.ParseException - which signals that an error has been reached
unexpectedly while parsing the content type or content subtype value.public DateHeader createDateHeader(Calendar date)
createDateHeader in interface HeaderFactorydate - - the new Calender value of the date.public EventHeader createEventHeader(String eventType) throws ParseException
createEventHeader in interface HeaderFactoryeventType - - the new string value of the eventType.ParseException - which signals that an error has been reached
unexpectedly while parsing the eventType value.public ExpiresHeader createExpiresHeader(int expires) throws InvalidArgumentException
createExpiresHeader in interface HeaderFactoryexpires - - the new integer value of the expires.InvalidArgumentException - if supplied expires is less
than zero.public ExtensionHeader createExtensionHeader(String name, String value) throws ParseException
name - - the new string name of the ExtensionHeader value.value - - the new string value of the ExtensionHeader.ParseException - which signals that an error has been reached
unexpectedly while parsing the name or value values.public FromHeader createFromHeader(Address address, String tag) throws ParseException
createFromHeader in interface HeaderFactoryaddress - - the new Address object of the address.tag - - the new string value of the tag.ParseException - which signals that an error has been reached
unexpectedly while parsing the tag value.public InReplyToHeader createInReplyToHeader(String callId) throws ParseException
createInReplyToHeader in interface HeaderFactorycallId - - the new string containing the callId value.ParseException - which signals that an error has been reached
unexpectedly while parsing the callId value.public MaxForwardsHeader createMaxForwardsHeader(int maxForwards) throws InvalidArgumentException
createMaxForwardsHeader in interface HeaderFactorymaxForwards - The new integer value of the maxForwards.InvalidArgumentException - if supplied maxForwards is less
than zero or greater than 255.public MimeVersionHeader createMimeVersionHeader(int majorVersion, int minorVersion) throws InvalidArgumentException
createMimeVersionHeader in interface HeaderFactorymajorVersion - - the new integer value of the majorVersion.minorVersion - - the new integer value of the minorVersion.InvalidArgumentException - if supplied mimeVersion is less
than zero.public MinExpiresHeader createMinExpiresHeader(int minExpires) throws InvalidArgumentException
createMinExpiresHeader in interface HeaderFactoryminExpires - - the new integer value of the minExpires.InvalidArgumentException - if supplied minExpires is less
than zero.public ExtensionHeader createMinSEHeader(int expires) throws InvalidArgumentException
expires - - the new integer value of the expires.InvalidArgumentException - if supplied expires is less
than zero.public OrganizationHeader createOrganizationHeader(String organization) throws ParseException
createOrganizationHeader in interface HeaderFactoryorganization - - the new string value of the organization.ParseException - which signals that an error has been reached
unexpectedly while parsing the organization value.public PriorityHeader createPriorityHeader(String priority) throws ParseException
createPriorityHeader in interface HeaderFactorypriority - - the new string value of the priority.ParseException - which signals that an error has been reached
unexpectedly while parsing the priority value.public ProxyAuthenticateHeader createProxyAuthenticateHeader(String scheme) throws ParseException
createProxyAuthenticateHeader in interface HeaderFactoryscheme - - the new string value of the scheme.ParseException - which signals that an error has been reached
unexpectedly while parsing the scheme value.public ProxyAuthorizationHeader createProxyAuthorizationHeader(String scheme) throws ParseException
createProxyAuthorizationHeader in interface HeaderFactoryscheme - - the new string value of the scheme.ParseException - which signals that an error has been reached
unexpectedly while parsing the scheme value.public ProxyRequireHeader createProxyRequireHeader(String optionTag) throws ParseException
createProxyRequireHeader in interface HeaderFactoryoptionTag - - the new string OptionTag value.ParseException - which signals that an error has been reached
unexpectedly while parsing the optionTag value.public RAckHeader createRAckHeader(long rSeqNumber, long cSeqNumber, String method) throws InvalidArgumentException, ParseException
rSeqNumber - - the new integer value of the rSeqNumber.cSeqNumber - - the new integer value of the cSeqNumber.method - - the new string value of the method.InvalidArgumentException - if supplied rSeqNumber or cSeqNumber is
less than zero or greater than than 2**31-1.ParseException - which signals that an error has been reached
unexpectedly while parsing the method value.public RAckHeader createRAckHeader(int rSeqNumber, int cSeqNumber, String method) throws InvalidArgumentException, ParseException
HeaderFactorycreateRAckHeader in interface HeaderFactoryrSeqNumber - the new integer value of the rSeqNumber.cSeqNumber - the new integer value of the cSeqNumber.method - the new string value of the method.InvalidArgumentException - if supplied rSeqNumber or cSeqNumber is
less than zero or greater than than 2**31-1.ParseException - which signals that an error has been reached
unexpectedly while parsing the method value.HeaderFactory.createRAckHeader(int, int, java.lang.String)public RSeqHeader createRSeqHeader(int sequenceNumber) throws InvalidArgumentException
HeaderFactorycreateRSeqHeader in interface HeaderFactorysequenceNumber - the new integer value of the sequenceNumber.InvalidArgumentException - if supplied sequenceNumber is
less than zero or greater than than 2**31-1.HeaderFactory.createRSeqHeader(int)public RSeqHeader createRSeqHeader(long sequenceNumber) throws InvalidArgumentException
sequenceNumber - - the new integer value of the sequenceNumber.InvalidArgumentException - if supplied sequenceNumber is
less than zero or greater than than 2**31-1.public ReasonHeader createReasonHeader(String protocol, int cause, String text) throws InvalidArgumentException, ParseException
createReasonHeader in interface HeaderFactoryprotocol - - the new string value of the protocol.cause - - the new integer value of the cause.text - - the new string value of the text.ParseException - which signals that an error has been reached
unexpectedly while parsing the protocol, cause or text value.InvalidArgumentException - if supplied cause is
less than zero.public RecordRouteHeader createRecordRouteHeader(Address address)
createRecordRouteHeader in interface HeaderFactoryaddress - - the new Address object of the address.public ReplyToHeader createReplyToHeader(Address address)
createReplyToHeader in interface HeaderFactoryaddress - - the new Address object of the address.public RequireHeader createRequireHeader(String optionTag) throws ParseException
createRequireHeader in interface HeaderFactoryoptionTag - - the new string value containing the optionTag value.ParseException - which signals that an error has been reached
unexpectedly while parsing the List of optionTag value.public RetryAfterHeader createRetryAfterHeader(int retryAfter) throws InvalidArgumentException
createRetryAfterHeader in interface HeaderFactoryretryAfter - - the new integer value of the retryAfter.InvalidArgumentException - if supplied retryAfter is less
than zero.public RouteHeader createRouteHeader(Address address)
createRouteHeader in interface HeaderFactoryaddress - - the new Address object of the address.public ServerHeader createServerHeader(List product) throws ParseException
createServerHeader in interface HeaderFactoryproduct - - the new list value of the product.ParseException - which signals that an error has been reached
unexpectedly while parsing the product value.public SubjectHeader createSubjectHeader(String subject) throws ParseException
createSubjectHeader in interface HeaderFactorysubject - - the new string value of the subject.ParseException - which signals that an error has been reached
unexpectedly while parsing the subject value.public SubscriptionStateHeader createSubscriptionStateHeader(String subscriptionState) throws ParseException
createSubscriptionStateHeader in interface HeaderFactorysubscriptionState - - the new string value of the subscriptionState.ParseException - which signals that an error has been reached
unexpectedly while parsing the subscriptionState value.public SupportedHeader createSupportedHeader(String optionTag) throws ParseException
createSupportedHeader in interface HeaderFactoryoptionTag - - the new string containing the optionTag value.ParseException - which signals that an error has been reached
unexpectedly while parsing the optionTag value.public TimeStampHeader createTimeStampHeader(float timeStamp) throws InvalidArgumentException
createTimeStampHeader in interface HeaderFactorytimeStamp - - the new float value of the timeStamp.InvalidArgumentException - if supplied timeStamp is less
than zero.public ToHeader createToHeader(Address address, String tag) throws ParseException
createToHeader in interface HeaderFactoryaddress - - the new Address object of the address.tag - - the new string value of the tag.ParseException - which signals that an error has been reached
unexpectedly while parsing the tag value.public UnsupportedHeader createUnsupportedHeader(String optionTag) throws ParseException
createUnsupportedHeader in interface HeaderFactoryoptionTag - - the new string containing the optionTag value.ParseException - which signals that an error has been reached
unexpectedly while parsing the List of optionTag value.public UserAgentHeader createUserAgentHeader(List product) throws ParseException
createUserAgentHeader in interface HeaderFactoryproduct - - the new list value of the product.ParseException - which signals that an error has been reached
unexpectedly while parsing the product value.public ViaHeader createViaHeader(String host, int port, String transport, String branch) throws ParseException, InvalidArgumentException
createViaHeader in interface HeaderFactoryhost - the new host value of uri.port - the new port value of uri.transport - the new transport value of uri.branch - the new string value of the branch.ParseException - which signals that an error has been reached
unexpectedly while parsing the branch value.InvalidArgumentException - if the supplied port is invalid.public WWWAuthenticateHeader createWWWAuthenticateHeader(String scheme) throws ParseException
createWWWAuthenticateHeader in interface HeaderFactoryscheme - - the new string value of the scheme.ParseException - which signals that an error has been reached
unexpectedly while parsing the scheme values.public WarningHeader createWarningHeader(String agent, int code, String comment) throws ParseException, InvalidArgumentException
createWarningHeader in interface HeaderFactoryagent - - the new string value of the agent.code - - the new boolean integer of the code.comment - - the new string value of the comment.ParseException - which signals that an error has been reached
unexpectedly while parsing the agent or comment values.InvalidArgumentException - if an invalid integer code is given for
the WarningHeader.public ErrorInfoHeader createErrorInfoHeader(URI errorInfo)
createErrorInfoHeader in interface HeaderFactoryerrorInfo - - the new URI value of the errorInfo.public Header createHeader(String headerText) throws ParseException
createHeader in interface HeaderFactoryExtParseExceptionpublic Header createHeader(String headerName, String headerValue) throws ParseException
createHeader in interface HeaderFactoryheaderName - -- header name for the header to parse.headerValue - -- header value for the header to parse.ParseExceptionExtensionHeaderpublic List createHeaders(String headers) throws ParseException
createHeaders in interface HeaderFactoryheaders - -- list of headers.ParseException - -- if a parse exception occurs or a List
of that type of header is not alowed.public ReferToHeader createReferToHeader(Address address)
createReferToHeader in interface HeaderFactoryaddress - -- address for the header.public ReferredByHeader createReferredByHeader(Address address)
createReferredByHeader in interface HeaderFactoryExtaddress - -- address for the header.
TODO: Once interfaces are in javax, change the type to MinSEHeader
and add to HeaderFactory. - pmusgravepublic ReplacesHeader createReplacesHeader(String callId, String toTag, String fromTag) throws ParseException
createReplacesHeader in interface HeaderFactoryExtcallId - -
the call id to use.toTag - -
the to tag to use.fromTag - -
the fromTag to use.ParseExceptionpublic JoinHeader createJoinHeader(String callId, String toTag, String fromTag) throws ParseException
createJoinHeader in interface HeaderFactoryExtcallId - -
the call id to use.toTag - -
the to tag to use.fromTag - -
the fromTag to use.ParseExceptionpublic SIPETagHeader createSIPETagHeader(String etag) throws ParseException
HeaderFactorycreateSIPETagHeader in interface HeaderFactoryetag - the new tag tokenParseException - when an error occurs during parsing of the etag parameterpublic SIPIfMatchHeader createSIPIfMatchHeader(String etag) throws ParseException
HeaderFactorycreateSIPIfMatchHeader in interface HeaderFactoryetag - the new tag tokenParseException - when an error occurs during parsing of the etag parameterpublic PAccessNetworkInfoHeader createPAccessNetworkInfoHeader()
createPAccessNetworkInfoHeader in interface HeaderFactoryExtpublic PAssertedIdentityHeader createPAssertedIdentityHeader(Address address) throws NullPointerException, ParseException
createPAssertedIdentityHeader in interface HeaderFactoryExtaddress - - AddressParseExceptionNullPointerExceptionpublic PAssociatedURIHeader createPAssociatedURIHeader(Address assocURI)
createPAssociatedURIHeader in interface HeaderFactoryExtassocURI - - AddressNullPointerException - if the supplied address is nullParseExceptionpublic PCalledPartyIDHeader createPCalledPartyIDHeader(Address address)
createPCalledPartyIDHeader in interface HeaderFactoryExtaddress - - AddressNullPointerExceptionParseExceptionpublic PChargingFunctionAddressesHeader createPChargingFunctionAddressesHeader()
createPChargingFunctionAddressesHeader in interface HeaderFactoryExtpublic PChargingVectorHeader createChargingVectorHeader(String icid) throws ParseException
createChargingVectorHeader in interface HeaderFactoryExticid - - icid stringNullPointerExceptionParseExceptionpublic PMediaAuthorizationHeader createPMediaAuthorizationHeader(String token) throws InvalidArgumentException, ParseException
createPMediaAuthorizationHeader in interface HeaderFactoryExttoken - - token stringInvalidArgumentExceptionParseExceptionpublic PPreferredIdentityHeader createPPreferredIdentityHeader(Address address)
createPPreferredIdentityHeader in interface HeaderFactoryExtaddress - - AddressNullPointerExceptionpublic PVisitedNetworkIDHeader createPVisitedNetworkIDHeader()
createPVisitedNetworkIDHeader in interface HeaderFactoryExtpublic PathHeader createPathHeader(Address address)
createPathHeader in interface HeaderFactoryExtaddress - - AddressNullPointerExceptionParseExceptionpublic PrivacyHeader createPrivacyHeader(String privacyType)
createPrivacyHeader in interface HeaderFactoryExtprivacyType - - privacy type stringNullPointerExceptionpublic ServiceRouteHeader createServiceRouteHeader(Address address)
createServiceRouteHeader in interface HeaderFactoryExtaddress - - AddressNullPointerExceptionpublic SecurityServerHeader createSecurityServerHeader()
createSecurityServerHeader in interface HeaderFactoryExtpublic SecurityClientHeader createSecurityClientHeader()
createSecurityClientHeader in interface HeaderFactoryExtpublic SecurityVerifyHeader createSecurityVerifyHeader()
createSecurityVerifyHeader in interface HeaderFactoryExtpublic PUserDatabaseHeader createPUserDatabaseHeader(String databaseName)
HeaderFactoryExtcreatePUserDatabaseHeader in interface HeaderFactoryExtpublic PProfileKeyHeader createPProfileKeyHeader(Address address)
HeaderFactoryExtcreatePProfileKeyHeader in interface HeaderFactoryExtpublic PServedUserHeader createPServedUserHeader(Address address)
HeaderFactoryExtcreatePServedUserHeader in interface HeaderFactoryExtaddress - of the served user.public PPreferredServiceHeader createPPreferredServiceHeader()
HeaderFactoryExtcreatePPreferredServiceHeader in interface HeaderFactoryExtpublic PAssertedServiceHeader createPAssertedServiceHeader()
HeaderFactoryExtcreatePAssertedServiceHeader in interface HeaderFactoryExtpublic SessionExpiresHeader createSessionExpiresHeader(int expires) throws InvalidArgumentException
createSessionExpiresHeader in interface HeaderFactoryExtexpires - - the new integer value of the expires.InvalidArgumentException - if supplied expires is less
than zero.public SipRequestLine createRequestLine(String requestLine) throws ParseException
createRequestLine in interface HeaderFactoryExtParseExceptionpublic SipStatusLine createStatusLine(String statusLine) throws ParseException
createStatusLine in interface HeaderFactoryExtParseExceptionpublic ReferencesHeader createReferencesHeader(String callId, String rel) throws ParseException
createReferencesHeader in interface HeaderFactoryExtcallId - rel - ParseExceptionCopyright © 2018. All Rights Reserved.