|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public java.lang.String[] getBodyHeaders()
public java.lang.String getBodyHeaderValue(java.lang.String headerName)
public java.lang.String[] getContentTypeAttributes()
public java.lang.String getContentTypeAttributeValue(java.lang.String attributeName)
public java.lang.String getMediaType()
|
Documentation is available at http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss31/ Copyright 2007 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |