|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelResponse
The interface used to wrap the response object. So it can make the channel processing logic protocol independent.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
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 of the response |
void |
setContentType(java.lang.String contentType)
Set the content type of the response |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
void handleServerException(ChannelContext channelContext, java.lang.Exception e) throws java.lang.Exception
e
- exception object
java.lang.Exception
- The exception description.void sendResult(ChannelContext channelContext, java.lang.String result) throws java.lang.Exception
channelContext
- the channel context objectresult
- the result send back to the client
java.lang.Exception
java.lang.String getCharacterEncoding()
void setCharacterEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingException
encoding
- the character encoding
java.io.UnsupportedEncodingException
- if the encoding isn't supportedjava.lang.Object getResponse()
void setContentType(java.lang.String contentType)
contentType
- the content type of the responsejava.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
void setContentLength(int length)
length
- the length of the contentvoid addCookie(java.lang.String name, java.lang.String value)
name
- the name of the cookievalue
- the value of the cookie
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |