|
interMedia BC4J Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ord.html.OrdURLBuilder
Generates an URL string that retrieves the media content referenced by the interMedia Business Component for Java (BC4J) domain objects.
The URL string can be used as the value for the HTML IMAGE(<IMG>) tag's SRC attribute or in HTML ANCHOR(<A>) tag's HREF attribute. Users can also use the URL string to construct HTML EMBED(<EMBED>) or OBJECT(<OBJECT>) tags to render multimedia content in the browser.
This class is used by OrdBuildURLRenderer
class and
interMedia BC4J Data Tags, such as <jbo:MediaUrl>, to generate
the media fetching URL.
The [mediaFetchingURL] has the following format:
[retrievepath]?appModId=[appModId]&rowSetName=[rowSetName]& contentCol=[mediaAttributeName]&rowKey=[rowKeyString]
By default, the [retrievepath] is a pre-supplied JSP page called ordPlayMedia.jsp. Users are allowed to provide their own custom retrieve path.
By using this utility class, users can write their own HTML display renderer class to create customized HTML tag strings for the interMedia domain classes.
OrdBuildURLRenderer
,
"interMedia BC4J Data Tags"Constructor Summary | |
OrdURLBuilder(oracle.jbo.html.DataSource dataSource,
oracle.jbo.Row row,
java.lang.String attribute)
Constructs an OrdURLBuilder instance. |
|
OrdURLBuilder(oracle.jbo.html.DataSource dataSource,
oracle.jbo.Row row,
java.lang.String attribute,
java.lang.String retrievePath)
Constructs an OrdURLBuilder instance. |
Method Summary |
Type | Method |
---|---|
int |
getContentLength()
Returns the content length of the interMedia domain object. |
int |
getHeight()
Returns the height attribute if the domain object is an
OrdImageDomain or OrdVideoDomain object. |
java.lang.String |
getMimeType()
Returns the MIMETYPE of the interMedia domain object. |
java.lang.Object |
getOrdDomainObject()
Returns the interMedia domain object contained by the given attribute name in the given row. |
java.lang.String |
getOrdDomainURL()
Returns the URL string that retrieves the multimedia content stored in the interMedia object. |
int |
getWidth()
Returns the width attribute if the domain object is an
OrdImageDomain or OrdVideoDomain object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OrdURLBuilder(oracle.jbo.html.DataSource dataSource, oracle.jbo.Row row, java.lang.String attribute)
OrdURLBuilder
instance. The generated URL
uses the default retrieve path, ordPlayMedia.jsp.dataSource
- the object that contains data binding information
used by the HTML renderer to access the domain
objectrow
- the row which contains the interMedia domain
objectattribute
- the attribute for which to build the URLpublic OrdURLBuilder(oracle.jbo.html.DataSource dataSource, oracle.jbo.Row row, java.lang.String attribute, java.lang.String retrievePath)
OrdURLBuilder
instance. The generated URL
uses the user supplied retrievePath.dataSource
- the object that contains data binding information
used by the HTML renderer to access the domain
objectrow
- the row which contains the interMedia domain
objectattribute
- the attribute for which to build the URLretrievePath
- the custom retrieve pathMethod Detail |
public java.lang.Object getOrdDomainObject()
null
if there
is no domain object in the row.public int getContentLength()
null
, it returns 0. If the domain
object contains OrdContentSource
object, it returns
the length of the OrdContentSource
object.OrdDomainIOInterface.getContentLength()
,
OrdContentSource.getContentLength()
public java.lang.String getOrdDomainURL()
The generated URL has the following format:
[retrievepath]?appModId=[appModId]&rowSetName=[rowSetName]& contentCol=[mediaAttributeName]&rowKey=[rowKeyString]
By default, the [retrievepath] is a pre-supplied JSP page called ordPlayMedia.jsp. Users are allowed to provide their own custom retrieve path.
OrdURLBuilder(DataSource, Row, String, String)
public int getWidth()
OrdImageDomain
or OrdVideoDomain
object. Otherwise,
it returns -1.public int getHeight()
OrdImageDomain
or OrdVideoDomain
object. Otherwise,
it returns -1.public java.lang.String getMimeType()
|
interMedia BC4J Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |