|
OpenAPI 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AQResponse
An instance of this interface is available to the script via aqua.response alias. An HTML output constructed by writing to this object will be inserted into a web page serviced by the script.
| Method Summary | |
|---|---|
void |
addMetaTag(String name,
String value)
Sets the value of META tag. |
void |
addMetaTagHttpEquiv(String name,
String value)
Sets the value of META HTTP-EQUIV tag. |
void |
clearMetaTags()
Clears previously set meta tags. |
String |
getContentType()
Returns HTTP response content type. |
AQDashboard |
getDashboard()
Returns the Dashboard object when a script is executed within the Aqua Data Server environment. |
String |
getHeader(String name)
Returns the value of the specified HTTP response header. |
String |
getStatus()
Returns HTTP response status code. |
String |
getTitle()
Returns the value of TITLE tag. |
void |
redirect(String uri)
Redirects the browser to the specified URI. |
void |
sendBinary(String contentType,
String filename,
byte[] data)
Sends binary data with the specified content type. |
void |
setContentType(String contentType)
Sets HTTP response content type. |
void |
setHeader(String name,
String value)
Sets HTTP response header. |
void |
setTitle(String title)
Sets the TITLE tag for HTML responses. |
AQResponse |
write(Object x)
Writes a string returned by the object's toString() method to the HTML response. |
AQResponse |
writeImageLink(String path)
Writes an image hyperlink. |
AQResponse |
writeLink(String text,
String url)
Writes a hyperlink. |
AQResponse |
writeText(String text)
Writes a sanitized string to the HTML response. |
| Method Detail |
|---|
AQResponse write(Object x)
x - AQResponse writeText(String text)
text - Text string to write.
AQResponse writeLink(String text,
String url)
text - User-visible text.url - Link URL.AQResponse writeImageLink(String path)
path - Absolute image file path.
void sendBinary(String contentType,
String filename,
byte[] data)
contentType - HTTP Content type string. Example: "image/png"filename - Attachment file name. A non-null parameter will trigger "Save As"
dialog in the browser instead of simply rendering a resource in a window.data - Binary data.void redirect(String uri)
uri - Resource URI.AQDashboard getDashboard()
void setHeader(String name,
String value)
name - value - String getHeader(String name)
name - void setContentType(String contentType)
contentType - String getContentType()
String getStatus()
void setTitle(String title)
title - Title string.String getTitle()
void addMetaTag(String name,
String value)
name - ASCII tag name.value - Meta tag value string.
void addMetaTagHttpEquiv(String name,
String value)
name - ASCII tag name.value - Meta tag value string.void clearMetaTags()
|
OpenAPI 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||