|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lutris.appserver.server.jolt.joltpo.JoltResponse
Cookies and other headers to be passed back to the client.
Constructor Summary | |
protected |
JoltResponse(HttpPresentationResponse httpResponse)
Construct a response object. |
Method Summary | |
void |
addCookie(javax.servlet.http.Cookie cookie)
Adds the specified cookie to the response. |
boolean |
containsHeader(java.lang.String name)
Returns true if the response message header has a field with the specified name. |
java.lang.String |
getEncoding()
Get the output character encoding. |
void |
setDateHeader(java.lang.String name,
long date)
Adds a field to the response header with a given name and date-valued field. |
void |
setEncoding(java.lang.String enc)
Set the output character encoding. |
void |
setHeader(java.lang.String name,
java.lang.String value)
Adds a field to the response header with a given name and value. |
void |
setIntHeader(java.lang.String name,
int value)
Adds a field to the response header with a given name and integer value. |
protected void |
write(java.lang.String str)
Write a string to the HTTP client. |
protected void |
writeHeaders()
Write buffered headers and cookies to the HTTP client. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JoltResponse(HttpPresentationResponse httpResponse)
httpResponse
- HTTP response object used to return the response.Method Detail |
public void addCookie(javax.servlet.http.Cookie cookie) throws HttpPresentationException
cookie
- - The Cookie to return to the client.
HttpPresentationException
public boolean containsHeader(java.lang.String name) throws HttpPresentationException
name
- the header field name
HttpPresentationException
public void setHeader(java.lang.String name, java.lang.String value) throws HttpPresentationException
name
- the header field namevalue
- the header field value
HttpPresentationException
public void setIntHeader(java.lang.String name, int value) throws HttpPresentationException
name
- the header field namevalue
- the header field integer value
HttpPresentationException
public void setDateHeader(java.lang.String name, long date) throws HttpPresentationException
name
- the header field name
HttpPresentationException
public void setEncoding(java.lang.String enc)
enc
- character encodingpublic java.lang.String getEncoding()
protected void writeHeaders() throws HttpPresentationException
HttpPresentationException
protected void write(java.lang.String str) throws HttpPresentationException
str
- The string to write.
HttpPresentationException
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |