Oracle Fusion Middleware
Oracle WebLogic SIP Server API Reference
11g Release 1 (10.3.4)

Part Number E17873-02

com.bea.wcp.sip.util
Interface ICParsedData


public interface ICParsedData

Objects implementing ICParsedData are produced from the ContentIndirectionUtil.

Here is an example message from the RFC 4483 spec. Note the URL parameter appearing in the Content-Type header.

            INVITE sip:boromir@example.com SIP/2.0
            From: <sip:gandalf@example.net>;tag=347242
            To: <sip:boromir@example.com>
            Call-ID: 3573853342923422@example.net
            CSeq: 2131 INVITE
            Accept: message/external-body application/sdp
            Content-Type: message/external-body;
                 ACCESS-TYPE=URL;
                 URL="http://www.example.net/party/06/2002/announcement";
                 EXPIRATION="Sat, 20 Jun 2002 12:00:00 GMT";
                 size=231
            Content-Length: ...

            Content-Type: application/sdp
            Content-Disposition: session
            Content-ID: <4e5562cd1214427d@example.net>
 
In the indirect-content message, values of interest are located in two locations: some are attributes in the Content-Type header(such as "EXPIRATION", above), and others are individual headers in the body of the message (such as "4e5562cd1214427d@example.net", above.)

To access the attributes under the Content-Type header, call getContentTypeAttributes() to get the available attribute names. The value corresponding to each attibute can be retrieved with getContentTypeAttributeValue(java.lang.String). The media type itself (message/external-body) can be retrieved with the getMediaType() method.

The individual headers in the body of the message are also available. Get the available headers by calling getBodyHeaders(). Retrieve the value of each header by calling getBodyHeaderValue(java.lang.String).


Method Summary
 java.lang.String[] getBodyHeaders()
          Return the names of the headers available in the body of the message ("Content-Type", "Content-Disposition", and "Content-ID", in the example above.) Never null.
 java.lang.String getBodyHeaderValue(java.lang.String headerName)
          Return the value of the header, or null if no header with that name exists.
 java.lang.String[] getContentTypeAttributes()
          Return the names of the attributes available in the Content-Type header.
 java.lang.String getContentTypeAttributeValue(java.lang.String attributeName)
          Return the value of the attribute, or null if it is not present in the Content-Type header.
 java.lang.String getMediaType()
          Return the media type of the message ("message/external-body", in the above example.) Never null.
 

Method Detail

getMediaType

java.lang.String getMediaType()
Return the media type of the message ("message/external-body", in the above example.) Never null.


getContentTypeAttributes

java.lang.String[] getContentTypeAttributes()
Return the names of the attributes available in the Content-Type header. Never null.


getContentTypeAttributeValue

java.lang.String getContentTypeAttributeValue(java.lang.String attributeName)
Return the value of the attribute, or null if it is not present in the Content-Type header.


getBodyHeaders

java.lang.String[] getBodyHeaders()
Return the names of the headers available in the body of the message ("Content-Type", "Content-Disposition", and "Content-ID", in the example above.) Never null.


getBodyHeaderValue

java.lang.String getBodyHeaderValue(java.lang.String headerName)
Return the value of the header, or null if no header with that name exists.


Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic SIP Server API Reference
11g Release 1 (10.3.4)

Part Number E17873-02