|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 | |
|---|---|
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. |
String |
getBodyHeaderValue(String headerName)Return the value of the header, or null if no header with that name exists. |
String[] |
getContentTypeAttributes()Return the names of the attributes available in the Content-Type header. |
String |
getContentTypeAttributeValue(String attributeName)Return the value of the attribute, or null if it is not present in the Content-Type header. |
String |
getMediaType()Return the media type of the message ("message/external-body", in the above example.) Never null. |
| Method Detail |
|---|
String getMediaType()
String[] getContentTypeAttributes()
String getContentTypeAttributeValue(String attributeName)
String[] getBodyHeaders()
String getBodyHeaderValue(String headerName)
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2012 Oracle Corporation. All Rights Reserved.