Method Summary |
|
public AuthorizationHeader | createAuthorizationHeader(String scheme) Creates a new AuthorizationHeader based on the newly supplied
scheme value.
Parameters: scheme - - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme value. |
public CSeqHeader | createCSeqHeader(int sequenceNumber, String method) Creates a new CSeqHeader based on the newly supplied sequence number and
method values.
Parameters: sequenceNumber - - the new integer value of the sequence number. Parameters: method - - the new string value of the method. throws: IllegalArgumentException - if supplied sequence number is lessthan zero. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the method value. |
public CallIdHeader | createCallId(String callId) Creates a new CallIdHeader based on the newly supplied callId value.
Parameters: callId - - the new string value of the call-id. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the callId value. |
public ContactHeader | createContactHeader(Address address) Creates a new ContactHeader based on the newly supplied address value.
Parameters: address - - the new Address value of the address. |
public ContactHeader | createContactHeader() Creates a new wildcard ContactHeader. |
public ContentLengthHeader | createContentLengthHeader(int contentLength) Creates a new CSeqHeader based on the newly supplied contentLength value.
Parameters: contentLength - - the new integer value of the contentLength. throws: IllegalArgumentException - if supplied contentLength is lessthan zero. |
public ContentTypeHeader | createContentTypeHeader(String contentType, String contentSubType) Creates a new ContentTypeHeader based on the newly supplied
contentType and contentSubType values.
Parameters: contentType - the new string content type value. Parameters: contentSubType - the new string content sub-type value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the content type or content subtype value. |
public DateHeader | createDateHeader(Calendar date) Creates a new DateHeader based on the newly supplied date value.
Parameters: date - - the new Calender value of the date. |
public EventHeader | createEventHeader(String eventType) Creates a new EventHeader based on the newly supplied eventType value.
Parameters: eventType - - the new string value of the eventType. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the eventType value. |
public ExpiresHeader | createExpiresHeader(int expires) Creates a new ExpiresHeader based on the newly supplied expires value.
Parameters: expires - - the new integer value of the expires. throws: IllegalArgumentException - if supplied expires is lessthan zero. |
public ExtensionHeader | createExtensionHeader(String name, String value) Creates a new ExtensionHeader based on the newly supplied name and
value values.
Parameters: name - - the new string name of the ExtensionHeader value. Parameters: value - - the new string value of the ExtensionHeader. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the name or value values. |
public FromHeader | createFromHeader(Address address, String tag) Creates a new FromHeader based on the newly supplied address and
tag values.
Parameters: address - - the new Address object of the address. Parameters: tag - - the new string value of the tag. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the tag value. |
public Header | createHeader(String headerName, String headerValue) Create and parse a header. |
public Vector | createHeaders(String headers) Create and return a list of headers.
Parameters: headers - -- list of headers. throws: ParseException - -- if a parse exception occurs or a Listof that type of header is not alowed. |
public MaxForwardsHeader | createMaxForwardsHeader(int maxForwards) Creates a new MaxForwardsHeader based on the newly
supplied maxForwards value.
Parameters: maxForwards - the new integer value of the maxForwards. throws: IllegalArgumentException - if supplied maxForwards is lessthan zero or greater than 255. |
public ProxyAuthenticateHeader | createProxyAuthenticateHeader(String scheme) Creates a new ProxyAuthenticateHeader based on the newly supplied
scheme value.
Parameters: scheme - - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme value. |
public ProxyAuthorizationHeader | createProxyAuthorizationHeader(String scheme) Creates a new ProxyAuthorizationHeader based on the newly supplied
scheme value.
Parameters: scheme - - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme value. |
public RecordRouteHeader | createRecordRouteHeader(Address address) Creates a new RecordRouteHeader based on the newly supplied
address value.
Parameters: address - - the new Address object of the address. |
public RouteHeader | createRouteHeader(Address address) Creates a new RouteHeader based on the newly supplied address value.
Parameters: address - - the new Address object of the address. |
public ToHeader | createToHeader(Address address, String tag) Creates a new ToHeader based on the newly supplied address and
tag values.
Parameters: address - - the new Address object of the address. Parameters: tag - - the new string value of the tag. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the tag value. |
public ViaHeader | createViaHeader(String host, int port, String transport, String branch) Creates a new ViaHeader based on the newly supplied uri and
branch values.
Parameters: host - the new host value from the uri field Parameters: port - the new port value from the uri field Parameters: transport - the new transport value from the uri field Parameters: branch - - the new string value of the branch. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the branch value. |
public WWWAuthenticateHeader | createWWWAuthenticateHeader(String scheme) Creates a new WWWAuthenticateHeader based on the newly supplied
scheme value.
Parameters: scheme - - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme values. |