public interface AQResponse
Modifier and Type | Method and Description |
---|---|
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.
|
AQResponse write(Object x)
x
- the object to writeAQResponse 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
- the header namevalue
- the header valueString getHeader(String name)
name
- the header namevoid setContentType(String contentType)
contentType
- the content typeString 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()
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.