|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Image
The Image interface is used to return an image.
Example: An image callback script.
String strImageName = request.getParameter("imageName");
String strDocReference = request.getParameter("reference");
if (null != strImageName)
{
Image theImage = boRepEng.getImage(strDocReference, strImageName);
response.setContentType(theImage.getMimeType());
ServletOutputStream Output = response.getOutputStream();
byte[] imageData = theImage.getBinaryContent();
response.setContentLength(imageData.length);
Output.write(imageData);
Output.close();
}
See ImageManagement for an example
of how to set an image callback script.
ImageManagement,
CallbackOption,
DrillOption,
EmbeddedCallbackOption,
RetrieveView,
CharacterView,
RetrieveData,
ReportEngine,
DocumentInformation| Nested Class Summary | |
|---|---|
static class |
Image.Factory
A class with methods for creating instances of the Image type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
byte[] |
getContent()
Returns the binary contents of an image. |
java.lang.String |
getMimeType()
Returns the mime type of the image. |
java.lang.String |
getName()
Returns the name of the image. |
boolean |
isSetContent()
Checks if the Content element is set. |
boolean |
isSetMimeType()
Checks if the MimeType attribute is set. |
boolean |
isSetName()
Checks if the Name attribute is set. |
void |
setContent(byte[] content)
Internal Use Only. |
void |
setMimeType(java.lang.String mimeType)
Internal Use Only. |
void |
setName(java.lang.String name)
Internal Use Only. |
void |
unsetContent()
Internal Use Only. |
void |
unsetMimeType()
Internal Use Only. |
void |
unsetName()
Internal Use Only. |
org.apache.xmlbeans.XmlBase64Binary |
xgetContent()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetMimeType()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetName()
Internal Use Only. |
void |
xsetContent(org.apache.xmlbeans.XmlBase64Binary content)
Internal Use Only. |
void |
xsetMimeType(org.apache.xmlbeans.XmlString mimeType)
Internal Use Only. |
void |
xsetName(org.apache.xmlbeans.XmlString name)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
Internal Use Only.
| Method Detail |
|---|
byte[] getContent()
Image,
ImageManagementorg.apache.xmlbeans.XmlBase64Binary xgetContent()
Internal Use Only.
boolean isSetContent()
true if the Content element is set, otherwise falsevoid setContent(byte[] content)
Internal Use Only.
void xsetContent(org.apache.xmlbeans.XmlBase64Binary content)
Internal Use Only.
void unsetContent()
Internal Use Only.
java.lang.String getMimeType()
For a list of possible mime types, see
getMimeType.
Image,
ImageManagementorg.apache.xmlbeans.XmlString xgetMimeType()
Internal Use Only.
boolean isSetMimeType()
true if the Mimetype element is set, otherwise falsevoid setMimeType(java.lang.String mimeType)
Internal Use Only.
void xsetMimeType(org.apache.xmlbeans.XmlString mimeType)
Internal Use Only.
void unsetMimeType()
Internal Use Only.
java.lang.String getName()
Image,
ImageManagementorg.apache.xmlbeans.XmlString xgetName()
Internal Use Only.
boolean isSetName()
true if the name element is set, otherwise falsevoid setName(java.lang.String name)
Internal Use Only.
void xsetName(org.apache.xmlbeans.XmlString name)
Internal Use Only.
void unsetName()
Internal Use Only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||