public interface AQResponse
Modifier and Type | Method and Description |
---|---|
void |
addMetaTag(java.lang.String name,
java.lang.String value)
Sets the value of META tag.
|
void |
addMetaTagHttpEquiv(java.lang.String name,
java.lang.String value)
Sets the value of META HTTP-EQUIV tag.
|
void |
clearMetaTags()
Clears previously set meta tags.
|
java.lang.String |
getContentType()
Returns HTTP response content type.
|
AQDashboard |
getDashboard()
Returns the Dashboard object when a script is executed within the Aqua Data Server environment.
|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the specified HTTP response header.
|
java.lang.String |
getStatus()
Returns HTTP response status code.
|
java.lang.String |
getTitle()
Returns the value of TITLE tag.
|
void |
redirect(java.lang.String uri)
Redirects the browser to the specified URI.
|
void |
sendBinary(java.lang.String contentType,
java.lang.String filename,
byte[] data)
Sends binary data with the specified content type.
|
void |
setContentType(java.lang.String contentType)
Sets HTTP response content type.
|
void |
setHeader(java.lang.String name,
java.lang.String value)
Sets HTTP response header.
|
void |
setTitle(java.lang.String title)
Sets the TITLE tag for HTML responses.
|
AQResponse |
write(java.lang.Object x)
Writes a string returned by the object's toString() method to the HTML response.
|
AQResponse |
writeImageLink(java.lang.String path)
Writes an image hyperlink.
|
AQResponse |
writeLink(java.lang.String text,
java.lang.String url)
Writes a hyperlink.
|
AQResponse |
writeText(java.lang.String text)
Writes a sanitized string to the HTML response.
|
AQResponse write(java.lang.Object x)
x
- the object to writeAQResponse writeText(java.lang.String text)
text
- Text string to write.AQResponse writeLink(java.lang.String text, java.lang.String url)
text
- User-visible text.url
- Link URL.AQResponse writeImageLink(java.lang.String path)
path
- Absolute image file path.void sendBinary(java.lang.String contentType, java.lang.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(java.lang.String uri)
uri
- Resource URI.AQDashboard getDashboard()
void setHeader(java.lang.String name, java.lang.String value)
name
- the header namevalue
- the header valuejava.lang.String getHeader(java.lang.String name)
name
- the header namevoid setContentType(java.lang.String contentType)
contentType
- the content typejava.lang.String getContentType()
java.lang.String getStatus()
void setTitle(java.lang.String title)
title
- Title string.java.lang.String getTitle()
void addMetaTag(java.lang.String name, java.lang.String value)
name
- ASCII tag name.value
- Meta tag value string.void addMetaTagHttpEquiv(java.lang.String name, java.lang.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.