Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Origin.java
   *
   * Created on December 20, 2001, 2:30 PM
   */
  
  package javax.sdp;


An Origin represents the o= fields contained within a SessionDescription. The Origin field identifies the originator of the session. This is not necessarily the same entity who is involved in the session. The Origin contains: the name of the user originating the session, a unique session identifier, and a unique version for the session. These fields should uniquely identify the session. The Origin also includes: the network type, address type, and address of the originator. Please refer to IETF RFC 2327 for a description of SDP.

Author(s):
deruelle
Version:
1.0
 
 public interface Origin extends Field {

    
Returns the name of the session originator.

Returns:
the string username.
Throws:
SdpParseException
     
     public String getUsername()
                    throws SdpParseException;
    
    
Sets the name of the session originator.

Parameters:
user the string username.
Throws:
SdpException if the parameter is null
     
     public void setUsername(String user)
                  throws SdpException;
    
    
Returns the unique identity of the session.

Returns:
the session id.
Throws:
SdpParseException
     
     public long getSessionId()
                   throws SdpParseException;
    
    
Sets the unique identity of the session.

Parameters:
id the session id.
Throws:
SdpException if the id is <0
     
     public void setSessionId(long id)
                   throws SdpException;
    
    
Returns the unique version of the session.

Returns:
the session version.
Throws:
SdpException
     
     public long getSessionVersion()
                        throws SdpParseException;
    
    
Sets the unique version of the session.

Parameters:
version the session version.
Throws:
SdpException if the version is <0
     
     public void setSessionVersion(long version)
                        throws SdpException;
    
    
Returns the type of the network for this Connection.

Returns:
the string network type.
Throws:
SdpParseException
     
     public String getAddress()
                   throws SdpParseException;
    
    
Returns the type of the address for this Connection.

Returns:
the string address type.
Throws:
SdpParseException
     
     public String getAddressType()
                       throws SdpParseException;
    
    
Returns the type of the network for this Connection

Returns:
the string network type.
Throws:
SdpParseException
     
     public String getNetworkType()
                       throws SdpParseException;
    
    
Sets the type of the address for this Connection.

Parameters:
addr string address type.
Throws:
SdpException if the addr is null
    
    public void setAddress(String addr)
                throws SdpException;
    
    
Returns the type of the network for this Connection.

Parameters:
type the string network type.
Throws:
SdpException if the type is null
    
    public void setAddressType(String type)
                    throws SdpException;
    
    
Sets the type of the network for this Connection.

Parameters:
type the string network type.
Throws:
SdpException if the type is null
    
    public void setNetworkType(String type)
                    throws SdpException;
New to GrepCode? Check out our FAQ X