|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RetrieveView
RetrieveView is used to set the format in which a document is retrieved
from the Web Services provider.
Note: RetrieveView must not be used on its own. Use interfaces inheriting
from RetrieveView such as RetrieveBinaryView.
Example: Retrieve a document's contents in binary PDF format
ViewSupport pdfViewSupport = ViewSupport.Factory.newInstance();
pdfViewSupport.setOutputFormat(OutputFormatType.PDF);
pdfViewSupport.setViewType(ViewType.BINARY);
pdfViewSupport.setViewMode(ViewModeType.DOCUMENT);
RetrieveBinaryView retBinView = RetrieveBinaryView.Factory.newInstance();
retBinView.setViewSupport(pdfViewSupport);
RetrieveData retBOData = RetrieveData.Factory.newInstance();
retBOData.setRetrieveView(retBinView);
DocumentInformation docInfo = boRepEng.getDocumentInformation(strDocid,null,null,null,retBOData);
BinaryView myBinView = (BinaryView) docInfo.getView();
OutputStream outputStream = response.getOutputStream();
response.setContentType("application/pdf");
response.setHeader("Content-Type","application/pdf");
response.setDateHeader("expires", 0);
byte[] abyBinaryContent = myBinView.getContent();
//output the binary stream via the response object
outputStream.write(abyBinaryContent);
ReportEngine,
BinaryView,
CharacterView,
XMLView,
ViewSupport,
ViewModeType,
RetrieveData,
RetrieveView,
RetrieveBinaryView,
RetrieveCharacterView,
RetrieveXMLView,
OutputFormatType,
DocumentInformation| Nested Class Summary | |
|---|---|
static class |
RetrieveView.Factory
A class with methods for creating instances of the RetrieveView type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
CallbackOption |
addNewCallbackOption()
Appends and returns a new empty value as the last CallbackOption element |
NameValuePair |
addNewMedia()
Appends and returns a new empty value as the last Media element |
org.apache.xmlbeans.XmlString |
addNewReportPartReference()
Appends and returns a new empty value as the last ReportPartReference element |
ViewSupport |
addNewViewSupport()
Appends and returns a new empty ViewSupport element. |
void |
addReportPartReference(java.lang.String reportPartReference)
Appends the value as the last ReportPartReference element |
CallbackOption[] |
getCallbackOptionArray()
Internal Use Only. |
CallbackOption |
getCallbackOptionArray(int i)
Internal Use Only. |
int |
getChunkSize()
Internal Use Only. |
NameValuePair[] |
getMediaArray()
Internal Use Only. |
NameValuePair |
getMediaArray(int i)
Internal Use Only. |
java.lang.String[] |
getReportPartReferenceArray()
Returns the ReportPartReference. |
java.lang.String |
getReportPartReferenceArray(int i)
Returns the ReportPartReference at index specified. |
java.lang.String |
getUserAgent()
Gets the user's browser type. |
ViewSupport |
getViewSupport()
Internal Use Only. |
CallbackOption |
insertNewCallbackOption(int i)
Inserts and returns a new empty value as the ith CallbackOption element |
NameValuePair |
insertNewMedia(int i)
Inserts and returns a new empty value as the ith Media element |
org.apache.xmlbeans.XmlString |
insertNewReportPartReference(int i)
Inserts and returns a new empty value as the ith ReportPartReference element |
void |
insertReportPartReference(int i,
java.lang.String reportPartReference)
Inserts the value as the ith ReportPartReference element |
boolean |
isNilCallbackOptionArray(int i)
Checks if the CallbackOption element is nil at the specified index position. |
boolean |
isNilMediaArray(int i)
Checks if the Media element is nil at the specified index position. |
boolean |
isNilReportPartReferenceArray(int i)
Checks if the ReportPartReference element is nil at the specified index position. |
boolean |
isNilViewSupport()
Checks if the ViewSupport element is nil. |
boolean |
isSetChunkSize()
Checks if the ChunkSize attribute is set. |
boolean |
isSetViewSupport()
Checks if the ViewSupport element is set. |
void |
removeCallbackOption(int i)
Removes the CallbackOption element from the specified index position. |
void |
removeMedia(int i)
Removes the Media element from the specified index position. |
void |
removeReportPartReference(int i)
Removes the ReportPartReference element at the specified index position. |
void |
setCallbackOptionArray(CallbackOption[] callbackOptionArray)
Sets the array of CallbackOptions to be used for this view. |
void |
setCallbackOptionArray(int i,
CallbackOption callbackOption)
Sets a CallbackOption element at the specified index position. |
void |
setChunkSize(int chunkSize)
Sets the chunk size measured in kilobytes for binary views or in kilocharacters for other kinds of view. |
void |
setMediaArray(int i,
NameValuePair media)
Sets the media to the index value, which is set in the NameValuePair object. |
void |
setMediaArray(NameValuePair[] mediaArray)
Sets the media to the value, which is set in the NameValuePair object. |
void |
setNilCallbackOptionArray(int i)
Sets the CallbackOption element to nil at the specified index position. |
void |
setNilMediaArray(int i)
Sets the Media element to nil at the index specified. |
void |
setNilReportPartReferenceArray(int i)
Sets the ReportPartReference element at the specified index position. |
void |
setNilViewSupport()
Sets the ViewSupport element to nil. |
void |
setReportPartReferenceArray(int i,
java.lang.String reportPartReference)
Sets the ReportPartReference element at the specified index position. |
void |
setReportPartReferenceArray(java.lang.String[] reportPartReferenceArray)
Sets the array of ReportPartReference element. |
void |
setUserAgent(java.lang.String userAgent)
Sets the user's browser type. |
void |
setViewSupport(ViewSupport viewSupport)
Sets the ViewSupport
to be retrieved with a DocumentInformation object. |
int |
sizeOfCallbackOptionArray()
Returns the size of the CallbackOption array. |
int |
sizeOfMediaArray()
Returns the size of the Media array. |
int |
sizeOfReportPartReferenceArray()
Returns the size of the report part reference array. |
void |
unsetChunkSize()
Unsets the ChunkSize attribute |
void |
unsetViewSupport()
Unsets the ViewSupport element. |
org.apache.xmlbeans.XmlInt |
xgetChunkSize()
Internal Use Only. |
org.apache.xmlbeans.XmlString[] |
xgetReportPartReferenceArray()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetReportPartReferenceArray(int i)
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetUserAgent()
Internal Use Only. |
void |
xsetChunkSize(org.apache.xmlbeans.XmlInt chunkSize)
Internal Use Only. |
void |
xsetReportPartReferenceArray(int i,
org.apache.xmlbeans.XmlString reportPartReference)
Internal Use Only. |
void |
xsetReportPartReferenceArray(org.apache.xmlbeans.XmlString[] reportPartReferenceArray)
Internal Use Only. |
void |
xsetUserAgent(org.apache.xmlbeans.XmlString userAgent)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
Internal Use Only.
| Method Detail |
|---|
ViewSupport getViewSupport()
Internal Use Only.
boolean isNilViewSupport()
true if the ViewSupport element is nil, otherwise falseboolean isSetViewSupport()
true if the ViewSupport element is set, otherwise falsevoid setViewSupport(ViewSupport viewSupport)
ViewSupport
to be retrieved with a DocumentInformation object.
View is retrieved from the Web Services provider.
ViewSupport.
viewSupport - a ViewSupport object.ViewSupport addNewViewSupport()
void setNilViewSupport()
void unsetViewSupport()
CallbackOption[] getCallbackOptionArray()
Internal Use Only.
CallbackOption getCallbackOptionArray(int i)
Internal Use Only.
boolean isNilCallbackOptionArray(int i)
i - the index of the CallbackOption element
true if the CallbackOption element is nil, otherwise falseint sizeOfCallbackOptionArray()
void setCallbackOptionArray(CallbackOption[] callbackOptionArray)
callbackOptionArray - the array of CallbackOption instancesView,
DrillOption,
EmbeddedCallbackOption,
ImageManagement,
RetrieveView,
RetrieveData,
ReportEngine,
DocumentInformation
void setCallbackOptionArray(int i,
CallbackOption callbackOption)
Note: Before using this function,
#setCallbackOption(com.businessobjects.dsws.reportengine.CallbackOption[] callbackOption) has to be called
to initialize the array.
i - The index of the CallbackOption to be set.callbackOption - a single CallbackOption instance.void setNilCallbackOptionArray(int i)
i - the index of the CallbackOption elementCallbackOption insertNewCallbackOption(int i)
i - the index of the CallbackOption element
CallbackOption addNewCallbackOption()
void removeCallbackOption(int i)
i - the index of the CallbackOption elementNameValuePair[] getMediaArray()
Internal Use Only.
NameValuePair getMediaArray(int i)
Internal Use Only.
boolean isNilMediaArray(int i)
i - the index of the Media element
true if the Media element is nil, otherwise falseint sizeOfMediaArray()
void setMediaArray(NameValuePair[] mediaArray)
mediaArray - - The array of NameValuePair objects
void setMediaArray(int i,
NameValuePair media)
i - the index of the NameValuePair objectmedia - - The NameValuePair objectvoid setNilMediaArray(int i)
i - the index of the Media elementNameValuePair insertNewMedia(int i)
i - the index of the Media element
NameValuePair addNewMedia()
void removeMedia(int i)
i - the index of the Media elementjava.lang.String[] getReportPartReferenceArray()
java.lang.String getReportPartReferenceArray(int i)
i - the index of the ReportPartReference element
org.apache.xmlbeans.XmlString[] xgetReportPartReferenceArray()
Internal Use Only.
org.apache.xmlbeans.XmlString xgetReportPartReferenceArray(int i)
Internal Use Only.
boolean isNilReportPartReferenceArray(int i)
i - the index of the ReportPartReference element
true if the ReportPartReference element is nil, otherwise falseint sizeOfReportPartReferenceArray()
void setReportPartReferenceArray(java.lang.String[] reportPartReferenceArray)
reportPartReferenceArray - - The array of ReportPartReference elements
void setReportPartReferenceArray(int i,
java.lang.String reportPartReference)
i - the index of the ReportPartReference elementreportPartReference - the report part referencevoid xsetReportPartReferenceArray(org.apache.xmlbeans.XmlString[] reportPartReferenceArray)
Internal Use Only.
void xsetReportPartReferenceArray(int i,
org.apache.xmlbeans.XmlString reportPartReference)
Internal Use Only.
void setNilReportPartReferenceArray(int i)
i - the index of the ReportPartReference element
void insertReportPartReference(int i,
java.lang.String reportPartReference)
i - the index of the ReportPartReference elementreportPartReference - the report part referencevoid addReportPartReference(java.lang.String reportPartReference)
reportPartReference - The report part reference elementorg.apache.xmlbeans.XmlString insertNewReportPartReference(int i)
i - the index of the ReportPartReference element
org.apache.xmlbeans.XmlString addNewReportPartReference()
void removeReportPartReference(int i)
i - the index of the ReportPartReference elementjava.lang.String getUserAgent()
org.apache.xmlbeans.XmlString xgetUserAgent()
Internal Use Only.
void setUserAgent(java.lang.String userAgent)
Example: Set the user agent.
RetrieveView.setUserAgent("MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322");
userAgent - the browser type.void xsetUserAgent(org.apache.xmlbeans.XmlString userAgent)
Internal Use Only.
int getChunkSize()
Internal Use Only.
org.apache.xmlbeans.XmlInt xgetChunkSize()
Internal Use Only.
boolean isSetChunkSize()
true if the ChunkSize element is set, otherwise falsevoid setChunkSize(int chunkSize)
Example: Set the chunk size to 128 kilobytes for a binary view.
// Send view content, one 128 KB chunk after another
RetrieveView.setChunkSize(128);
chunkSize - the requested number of kilobytes or kilocharacters for the document view chunk, 0 to prevent the view from chunking.void xsetChunkSize(org.apache.xmlbeans.XmlInt chunkSize)
Internal Use Only.
void unsetChunkSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||