Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package gov.nist.javax.sip.header;
  
  
 
Header factory extensions. These will be included in the next release of JAIN-SIP.

Since:
2.0
 
 public interface HeaderFactoryExt extends HeaderFactory {
    
    
Create a RequestLine from a String

 
     public SipRequestLine createRequestLine(String requestLinethrows ParseException;
    
    
    
Create a StatusLine from a String.
 
     public SipStatusLine createStatusLine(String statusLinethrows ParseException;
    
    
    
Create a ReferredBy Header.

Parameters:
address -- address for the header.
 
     public ReferredByHeader createReferredByHeader(Address address);

    
Create a Replaces header with a call Id, to and from tag.

Parameters:
callId - the call id to use.
toTag - the to tag to use.
fromTag - the fromTag to use.
 
     public ReplacesHeader createReplacesHeader(String callIdString toTag,
             String fromTagthrows ParseException;

    
creates a P-Access-Network-Info header.

Returns:
newly created P-Access-Network-Info header
 
P-Asserted-Identity header

Parameters:
address - Address
Returns:
newly created P-Asserted-Identity header
Throws:
java.text.ParseException
java.lang.NullPointerException
 
             throws NullPointerExceptionParseException;

    
Creates a new P-Associated-URI header based on the supplied address

Parameters:
assocURI - Address
Returns:
newly created P-Associated-URI header
Throws:
java.lang.NullPointerException if the supplied address is null
java.text.ParseException
    public PAssociatedURIHeader createPAssociatedURIHeader(Address assocURI);

    
P-Called-Party-ID header

Parameters:
address - Address
Returns:
newly created P-Called-Party-ID header
Throws:
java.lang.NullPointerException
java.text.ParseException
    public PCalledPartyIDHeader createPCalledPartyIDHeader(Address address);

    
P-Charging-Function-Addresses header

Returns:
newly created P-Charging-Function-Addresses header
P-Charging-Vector header

Parameters:
icid - icid string
Returns:
newly created P-Charging-Vector header
Throws:
java.lang.NullPointerException
java.text.ParseException
    public PChargingVectorHeader createChargingVectorHeader(String icidthrows ParseException;

     
P-Media-Authorization header

Parameters:
token - token string
Returns:
newly created P-Media-Authorizarion header
Throws:
javax.sip.InvalidArgumentException
java.text.ParseException
        throws InvalidArgumentExceptionParseException;

    
P-Preferred-Identity header

Parameters:
address - Address
Returns:
newly created P-Preferred-Identity header
Throws:
java.lang.NullPointerException
P-Visited-Network-ID header

Returns:
newly created P-Visited-Network-ID header
PATH header

Parameters:
address - Address
Returns:
newly created Path header
Throws:
java.lang.NullPointerException
java.text.ParseException
    public PathHeader createPathHeader(Address address);

    
Privacy header

Parameters:
privacyType - privacy type string
Returns:
newly created Privacy header
Throws:
java.lang.NullPointerException
    public PrivacyHeader createPrivacyHeader(String privacyType);


    
Service-Route header

Parameters:
address - Address
Returns:
newly created Service-Route header
Throws:
java.lang.NullPointerException
    public ServiceRouteHeader createServiceRouteHeader(Address address);

    
Security-Server header

Returns:
newly created Security-Server header
Security-Client header

Returns:
newly created Security-Client header
Security-Verify header

Returns:
newly created Security-Verify header
Creates a new SessionExpiresHeader based on the newly supplied expires value.

Parameters:
expires - the new integer value of the expires.
Returns:
the newly created SessionExpiresHeader object.
Throws:
javax.sip.InvalidArgumentException if supplied expires is less than zero.
    public SessionExpiresHeader createSessionExpiresHeader(int expiresthrows InvalidArgumentException ;

    
Create a Join header with a call Id, to and from tag.

Parameters:
callId - the call id to use.
toTag - the to tag to use.
fromTag - the fromTag to use.
    public JoinHeader createJoinHeader(String callIdString toTag,
            String fromTagthrows ParseException;

    
Create a P-User-Database header.

Parameters:
the database name, that may be an IP:port or a domain name.
Returns:
the newly created P-User-Database header
    public PUserDatabaseHeader createPUserDatabaseHeader(String databaseName);


    
Create a P-Profile-Key header.

Parameters:
address
Returns:
The newly created P-Profile-Key header
    public PProfileKeyHeader createPProfileKeyHeader(Address address);

    
Create a P-Served-User header.

Parameters:
address of the served user.
Returns:
The newly created P-Served-User Header.
    public PServedUserHeader createPServedUserHeader(Address address);

    
Create a P-Preferred-Service header.

Returns:
The newly created P-Preferred-Service Header.
Create an AssertedService Header

Returns:
The newly created P-Asserted-Service Header.
    public PAssertedServiceHeader createPAssertedServiceHeader();
    
    
    
Create a References header.

Parameters:
callId -- the referenced call Id.
rel -- the rel parameter of the references header.
Returns:
the newly created References header.
    public ReferencesHeader createReferencesHeader(String callIdString relthrows ParseException;
    
    
Create a header from a string. The string is assumed to be in the name:value format. The trailing CRLF (if any ) will be stripped before parsing this. The header should be a singleton.
    public Header createHeader(String headerthrows ParseException;
New to GrepCode? Check out our FAQ X