|
interMedia BC4J Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.ord.html.OrdPlayMedia
Interprets the URLs constructed by OrdURLBuilder
,
retrieves multimedia content from the database, and sends the data to
the browser.
OrdPlayMedia
only supports JSP applications. Internally, it uses
oracle.ord.im.OrdHttpJspResponseHandler
to deliver binary
multimedia content to the browser. There are some important notes on using
JSP to deliver binary data in
.
OrdHttpJspResponseHandler
A JSP page named ordPlayMedia.jsp
is the front end of this
class. When the JSP application intends to use OrdPlayMedia
to
retrieve multimedia content and deliver it to the browser,
ordPlayMedia.jsp
should be included into the user's JSP application.
After delivering the content, the resources will be released. The default
release mode is Reserved. Users can set the release mode by invoking
setReleaseMode()
method on OrdPlayMedia
object.
A sample usage is provided below:
<jsp:useBean id="playMedia" class="oracle.ord.html.OrdPlayMedia" scope="request"> <jsp:setProperty name="playMedia" property="*" /> <% playMedia.initialize(pageContext); playMedia.setReleaseMode("Stateless"); playMedia.renderContent(); if(true) return; %> </jsp:useBean>The
ordPlayMedia.jsp
file can be extracted from the
webapp.zip
file located in
the JDeveloper /redist/
folder.
OrdURLBuilder
,
OrdHttpJspResponseHandler
Constructor Summary | |
OrdPlayMedia()
Constructs an OrdPlayMedia instance. |
Method Summary |
Type | Method |
---|---|
void |
ordRender()
Deprecated. As of JDeveloper5.0, replaced by renderContent() |
void |
renderContent()
Retrieves the multimedia content from the database using the appropriate interMedia domain object and then sends it to the browser window. |
void |
setAppModID(java.lang.String appModId)
Sets the Business Components for Java application module id. |
void |
setContentCol(java.lang.String attrName)
Sets the attribute name for the interMedia column. |
void |
setReleaseMode(java.lang.String releaseMode)
Sets the release mode of application module. |
void |
setRowKey(java.lang.String rowKey)
Sets the String representation of the row
that contains the multimedia content. |
void |
setRowSetName(java.lang.String rowSetName)
Sets the rowset name. |
Constructor Detail |
public OrdPlayMedia()
OrdPlayMedia
instance.Method Detail |
public void setContentCol(java.lang.String attrName)
attrName
- the attribute name for the interMedia columnpublic void setRowSetName(java.lang.String rowSetName)
rowSetName
- the rowset namepublic void setAppModID(java.lang.String appModId)
appModId
- the application module idpublic void setRowKey(java.lang.String rowKey)
String
representation of the row
that contains the multimedia content. The RowKey object
may include a primary key when one exists, but it also
includes information from the view object to uniquely
identify the row.rowKey
- the String object that uniquely identifies a roworacle.jbo.Key#toStringFormat
public void setReleaseMode(java.lang.String releaseMode)
releaseMode
- the release mode of application module, including
Stateful, Stateless and Reserved.public void ordRender() throws java.lang.Exception
renderContent()
public void renderContent() throws java.lang.Exception
|
interMedia BC4J Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |