|
Oracle Fusion Middleware Oracle WebLogic SIP Server API Reference 11g Release 1 (10.3.4) Part Number E17873-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wcp.sip.util.ContentIndirectionUtil
public final class ContentIndirectionUtil
A SIP message consists of a start line, various headers, and then the body of the message. Content Indirection (CI) allows the body to be located outside the message itself, allowing later retrieval. This second location is provided in a header, and consists of an URL, typically using HTTP. Additional headers provide secondary information about the body, such as its size, and the lifetime of the URL.
Content Indirection is described in RFC 4438.
This static class presents three utility methods which make it easier to use Content Indirection.
Use the bodyIsIndirect(javax.servlet.sip.SipServletMessage)
method to check whether a SIP message is using content indirection.
If it is, then call parseIndirectContentData(javax.servlet.sip.SipServletMessage)
to get an ICParsedData
object,
through which can be accessed the various attributes and headers relevant to Content Indirection messages.
Attributes that are long-form dates can be
decoded using the date format produced by getDateFormat()
. Check the
content indirection example for example code.
Method Summary | |
---|---|
static boolean |
bodyIsIndirect(SipServletMessage msg)
Is msg using Indirect Content? |
static java.text.SimpleDateFormat |
getDateFormat()
Return a SimpleDateFormat for the RFC1123 date format, restricted to GMT. |
static ICParsedData |
parseIndirectContentData(SipServletMessage msg)
Return an object that can provide the attributes and body headers from a message that is using content indirection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.text.SimpleDateFormat getDateFormat()
public static ICParsedData parseIndirectContentData(SipServletMessage msg) throws ContentIndirectionException
ICParsedData
for more information.
ContentIndirectionException
public static boolean bodyIsIndirect(SipServletMessage msg)
|
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 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |