|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.http.HttpChannelResponse
public class HttpChannelResponse
The channel response used to wrap the HttpServletResponse.
Field Summary | |
---|---|
protected javax.servlet.http.HttpServletResponse |
response
|
Constructor Summary | |
---|---|
HttpChannelResponse(javax.servlet.http.HttpServletResponse response)
Construct the HttpChannelResponse object |
Method Summary | |
---|---|
void |
addCookie(java.lang.String name,
java.lang.String value)
add the cookie the response |
java.lang.String |
getCharacterEncoding()
|
java.io.OutputStream |
getOutputStream()
|
java.lang.Object |
getResponse()
The channel response is a wrapper, so you can use this to get the underlying response object |
void |
handleServerException(ChannelContext channelContext,
java.lang.Exception e)
Convenience method to ensure that a response is returned to the client for the case where no presentation handler exists or because the server is not initialized. |
void |
sendResult(ChannelContext channelContext,
java.lang.String result)
Send the result back to the client |
void |
setCharacterEncoding(java.lang.String encoding)
Set the character encoding of the request and the response |
void |
setContentLength(int length)
Set the content length |
void |
setContentType(java.lang.String contentType)
Set the content type of the response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.servlet.http.HttpServletResponse response
Constructor Detail |
---|
public HttpChannelResponse(javax.servlet.http.HttpServletResponse response)
response
- HttpServletResponse the responseMethod Detail |
---|
public void handleServerException(ChannelContext channelContext, java.lang.Exception e) throws java.lang.Exception
handleServerException
in interface ChannelResponse
e
- exception object
java.lang.Exception
- The exception description.public void sendResult(ChannelContext channelContext, java.lang.String result) throws java.lang.Exception
sendResult
in interface ChannelResponse
channelContext
- the channel context objectresult
- the result send back to the client
java.lang.Exception
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface ChannelResponse
public java.lang.Object getResponse()
getResponse
in interface ChannelResponse
public void setCharacterEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingException
setCharacterEncoding
in interface ChannelResponse
encoding
- the character encoding
java.io.UnsupportedEncodingException
- if the encoding isn't supportedpublic void addCookie(java.lang.String name, java.lang.String value)
addCookie
in interface ChannelResponse
name
- the name of the cookievalue
- the value of the cookiepublic java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface ChannelResponse
java.io.IOException
public void setContentLength(int length)
setContentLength
in interface ChannelResponse
length
- the length of the contentpublic void setContentType(java.lang.String contentType)
setContentType
in interface ChannelResponse
contentType
- the content type of the response
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |