Internationalization Support Setting Global Properties
8.20.2 Implement DeliveryRequest Interface
DeliveryRequest represents a delivery request that includes document information and delivery metadata, such as destination and other properties. To implement oracle.apps.xdo.delvery.DeliveryRequest you can extend the class oracle.apps.xdo.delivery.AbstractDeliveryRequest. For example, to create a custom delivery channel to deliver documents to the local file system, the DeliveryRequest implementation will be as follows: Example 8–36 Sample Code for Delivering Documents to a Local File System through a Custom Delivery Channel package oracle.apps.xdo.delivery.file; import oracle.apps.xdo.delivery.AbstractDeliveryRequest; public class FileDeliveryRequest extends AbstractDeliveryRequest implements FilePropertyDefinitions { private static final String[] MANDATORY_PROPS = {FILE_DESTINATION}; Returns mandatory property names public String[] getMandatoryProperties { return MANDATORY_PROPS; } Returns optional property names public String[] getOptionalProperties { return null; } }8.20.3 Implement DeliveryRequestHandler Interface
DeliveryRequestHandler includes the logic for handling the delivery requests. A sample implementation of oracle.apps.xdo.delivery.DeliveryRequestHandler for the file delivery channel is as follows: Example 8–37 Sample Code for Implementing the DeliveryRequestHandler Interface package oracle.apps.xdo.delivery.file; import java.io.BufferedOutputStream; import java.io.File; 8-36 Developers Guide for Oracle Business Intelligence Publisher import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import oracle.apps.xdo.delivery.DeliveryException; import oracle.apps.xdo.delivery.DeliveryRequest; import oracle.apps.xdo.delivery.DeliveryRequestHandler; import oracle.apps.xdo.delivery.DeliveryStatusDefinitions; public class FileDeliveryRequestHandler implements DeliveryRequestHandler { private FileDeliveryRequest mRequest; private boolean mIsOpen = false; private OutputStream mOut; default constructor. public FileDeliveryRequestHandler { } sets the request. public void setRequestDeliveryRequest pRequest { mRequest = FileDeliveryRequest pRequest; } returns the request. public DeliveryRequest getRequest { return mRequest; } opens the output stream to the destination. public OutputStream openRequest throws DeliveryException { try { String filename = String mRequest.getPropertyFileDeliveryRequest.FILE_DESTINATION; mOut = new BufferedOutputStreamnew FileOutputStreamfilename; mIsOpen = true; set request status to open mRequest.setStatusDeliveryStatusDefinitions.STATUS_OPEN; return mOut; } catch IOException e { closeRequest; throw new DeliveryExceptione;Parts
» Oracle Fusion Middleware Online Documentation Library
» About BI Publisher Web Services About In-Session Methods
» Click the Add button. You will see a new tab with the new monitor listening on
» Base Data Types XML-to-Java Data Type Mappings
» Complex Data Types Oracle Fusion Middleware Online Documentation Library
» cancelSchedule Method cancelScheduleInSession Method
» deleteSchedule Method Oracle Fusion Middleware Online Documentation Library
» deleteScheduleInSession Method deliveryService Method deliveryServiceInSession Method
» downloadDocumentData Method downloadDocumentDataInSession Method
» getAllScheduledReport Method Oracle Fusion Middleware Online Documentation Library
» getAllScheduledReportHistory Method getAllScheduledReportHistoryInSession Method
» getAllScheduledReportInSession Method getDeliveryServiceDefinition Method
» getScheduledJobInfo Method getScheduledJobInfoInSession Method
» getScheduledReportDeliveryInfo Method Oracle Fusion Middleware Online Documentation Library
» getScheduledReportDeliveryInfoInSession Method getScheduledReportOutputInfo Method
» getScheduledReportOutputInfoInSession Method getXMLData Method
» getXMLDataInSession Method purgeJobHistory Method purgeJobHistoryInSession Method
» resendScheduledReport Method Oracle Fusion Middleware Online Documentation Library
» resendScheduledReportInSession Method resumeSchedule Method
» resumeScheduleInSession Method scheduleReport Method
» scheduleReportInSession Method suspendSchedule Method suspendScheduleInSession Method
» createReport Method Oracle Fusion Middleware Online Documentation Library
» createReportInSession Method downloadReportDataChunk Method
» downloadReportDataChunkInSession Method getReportDefinition Method
» getReportDefinitionInSession Method getReportParameters Method
» getReportParametersInSession Method getReportSampleData Method getReportSampleDataInSession Method
» getTemplate Method getTemplateInSession Method
» getTemplateParameters Method Oracle Fusion Middleware Online Documentation Library
» getTemplateParameterInSession Method Oracle Fusion Middleware Online Documentation Library
» getXDOSchema Method Oracle Fusion Middleware Online Documentation Library
» getXDOSchemaInSession Method Oracle Fusion Middleware Online Documentation Library
» removeTemplateForReport Method removeTemplateForReportInSession Method runReport Method
» runReportInSession Method updateReportDefinition Method
» updateXLIFFForReport Method updateXLIFFForReportInSession Method
» uploadReportDataChunk Method uploadReportDataChunkInSession Method uploadTemplateForReport Method
» createUser Method Oracle Fusion Middleware Online Documentation Library
» getBIPHTTPSessionInterval Method Oracle Fusion Middleware Online Documentation Library
» hasObjectAccess Method hasObjectAccessInSession Method
» impersonate Method isUserExists Method
» updateRole Method updateUser Method
» validateLogin Method Oracle Fusion Middleware Online Documentation Library
» copyObject Method copyObjectInSession Method createFolder Method
» createFolderInSession Method createObject Method
» createObjectInSession Method Oracle Fusion Middleware Online Documentation Library
» downloadObject Method Oracle Fusion Middleware Online Documentation Library
» downloadObjectInSession Method downloadXLIFF Method downloadXLIFFInSession Method
» getFolderContents Method getFolderContentsInSession Method getObject Method getObjectInfo Method
» getObjectInfoInSession Method Oracle Fusion Middleware Online Documentation Library
» getObjectInSession Method objectExist Method
» objectExistInSession Method renameObject Method renameObjectInSession Method
» updateObject Method updateObjectInSession Method uploadObject Method uploadObjectInSession Method
» uploadXLIFF Method uploadXLIFFInSession Method
» Prerequisites Oracle Fusion Middleware Online Documentation Library
» Obtaining the Libraries Oracle Fusion Middleware Online Documentation Library
» RTF Processor Engine Oracle Fusion Middleware Online Documentation Library
» FO Processor Engine Oracle Fusion Middleware Online Documentation Library
» PDF Document Merger Oracle Fusion Middleware Online Documentation Library
» PDF Bookbinder Processor Oracle Fusion Middleware Online Documentation Library
» PDF Digital Signature Engine
» eText Processor Oracle Fusion Middleware Online Documentation Library
» Document Processor Engine Oracle Fusion Middleware Online Documentation Library
» BI Publisher Properties Oracle Fusion Middleware Online Documentation Library
» Advanced Barcode Formatting Oracle Fusion Middleware Online Documentation Library
» Delivering Documents by E-Mail
» Delivering Your Document to a Printer
» Delivering Your Document to a Local Printer
» Delivering Your Documents to a Fax Server Delivering Your Documents to a RightFax Server
» Delivering Your Documents to a WebDAV Server
» Delivering Your Document over the File Transfer Protocol FTP
» Delivering Your Documents over Secure FTP
» Delivering Your Documents over Hypertext Transfer Protocol HTTP
» Delivering Documents over AS2
» Delivering Documents Using an External Command Delivering Documents to the Local File System
» Asynchronous Delivery Requests Oracle Fusion Middleware Online Documentation Library
» Document Filter Support Oracle Fusion Middleware Online Documentation Library
» Date Expression Support Oracle Fusion Middleware Online Documentation Library
» Internationalization Support Setting Global Properties
» Define Delivery Properties Register your custom DeliveryRequestFactory to the DeliveryManager
» Implement DeliveryRequest Interface Implement DeliveryRequestHandler Interface
» Register your custom DeliveryRequestFactory to DeliveryManager
» Configuration File Support Oracle Fusion Middleware Online Documentation Library
» Configuring the Application Module Updating web.xml
Show more