|
Oracle Reports Java API Reference 11g Release 1 (11.1.1) E10775-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.reports.server.Destination
public abstract class Destination
Abstract base class for reports server destinations When create customized destination plugin, the subclass needs to implement several abstract methods defined here, and can optionally override methods implemented here. By default, reports has implemented DesMail, DesFile, DesCache, DesPrint, and DesOraclePortal
Field Summary | |
---|---|
protected CacheItem |
m_cacheItem
The cache item associated with the destination. |
protected Job |
m_job
The job object to which the destination object attaches. |
protected java.util.Properties |
mProps
|
Constructor Summary | |
---|---|
Destination()
|
Method Summary | |
---|---|
protected CacheItem |
getCacheItem()
Returns the cache item associated with the destination. |
protected java.io.InputStream |
getContent(java.lang.String fileName)
Returns the contents of a file from the cache. |
protected java.lang.String |
getDesname()
Returns the destination name (DESNAME) of the object. |
java.lang.String |
getDestinationId()
|
java.lang.String |
getDestKey()
|
protected java.lang.String |
getDestype()
Returns the destination type (DESTYPE) of the object. |
protected Job |
getJob()
Returns the job object to which the destination object attaches. |
protected java.lang.String |
getPluginParam(java.lang.String name)
Returns the plugin parameter value given the parameter name. |
protected java.util.Properties |
getProperties()
Returns the properties for the destination. |
static java.util.Properties |
getStaticProperties()
|
protected static void |
init(java.util.Properties destProps)
Initializes the destination class. |
protected void |
send()
Sends the output to a specified DESTYPE and DESNAME. |
protected abstract void |
sendFile(boolean main,
java.lang.String fileName,
short fileFormat,
long fileSize)
Sends a file to the destination. |
protected void |
setCacheItem(CacheItem item)
Sets a cache item associated with the destination. |
protected void |
setDesname(java.lang.String desname)
Sets the destination name. |
void |
setDestinationId(java.lang.String id)
|
void |
setDestKey(java.lang.String key)
|
protected void |
setJob(Job job)
Sets the job object to which the Destination object attaches. |
protected void |
setProperties(java.util.Properties props)
Sets the properties for the subclass object. |
static void |
setStaticProperties(java.util.Properties props)
|
protected static void |
shutdown()
Shuts down the destination class. |
protected abstract boolean |
start(java.util.Properties props,
java.lang.String desname,
int totalFile,
long totalSize,
short mainFormat)
Invoked before sending the first file to the destination. |
protected void |
stop()
Invoked after all the files are sent to the destination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CacheItem m_cacheItem
protected Job m_job
protected java.util.Properties mProps
Constructor Detail |
---|
public Destination()
Method Detail |
---|
protected static void init(java.util.Properties destProps) throws RWException
destProps
- The properties set in the server configuration file for
the specified
plugin destination.
RWException
protected static void shutdown()
protected java.lang.String getDestype()
protected void setDesname(java.lang.String desname)
This can be the value from the command line argument DESNAME, or it can come from a distribution file (.dist), or an .XML file.
desname
- The DESNAME command line argument for the job.protected java.lang.String getDesname()
protected void setProperties(java.util.Properties props) throws RWException
props
- Any properties passed in from command line or distribution
file.
RWException
protected java.util.Properties getProperties()
protected java.lang.String getPluginParam(java.lang.String name) throws RWException
name
- The plugin parameter name.
RWException
protected void setCacheItem(CacheItem item)
item
- The cache item associated with the destination.protected CacheItem getCacheItem()
protected void setJob(Job job)
job
- The job object to which the Destination object attaches.protected Job getJob()
protected void send() throws RWException
RWException
protected java.io.InputStream getContent(java.lang.String fileName) throws RWException
fileName
- Name of the file under which the content is stored.
RWException
protected abstract boolean start(java.util.Properties props, java.lang.String desname, int totalFile, long totalSize, short mainFormat) throws RWException
props
- Properties for sending output to the destination.desname
- Destination name.totalFile
- Total number of files in the output.totalSize
- Total size of the output.mainFormat
- Format for the main output file.
RWException
protected void stop() throws RWException
RWException
protected abstract void sendFile(boolean main, java.lang.String fileName, short fileFormat, long fileSize) throws RWException
main
- Main part of the output.fileName
- File name including path.fileFormat
- File format.fileSize
- File size.
RWException
public void setDestKey(java.lang.String key)
public java.lang.String getDestKey()
public void setDestinationId(java.lang.String id)
public java.lang.String getDestinationId()
public static void setStaticProperties(java.util.Properties props)
public static java.util.Properties getStaticProperties()
|
Oracle Reports Java API Reference |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |