|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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(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(Cookie cookie) throws HttpPresentationException
cookie
- - The Cookie to return to the client.public boolean containsHeader(java.lang.String name) throws HttpPresentationException
name
- the header field namepublic void setHeader(java.lang.String name, java.lang.String value) throws HttpPresentationException
name
- the header field namevalue
- the header field valuepublic void setIntHeader(java.lang.String name, int value) throws HttpPresentationException
name
- the header field namevalue
- the header field integer valuepublic void setDateHeader(java.lang.String name, long date) throws HttpPresentationException
name
- the header field namevalue
- the header field date valuepublic void setEncoding(java.lang.String enc)
enc
- character encodingpublic java.lang.String getEncoding()
protected void writeHeaders() throws HttpPresentationException
protected void write(java.lang.String str) throws HttpPresentationException
str
- The string to write.
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |