IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.http
Class JSONHttpChannelResponse

java.lang.Object
  extended by com.ibm.btt.http.HttpChannelResponse
      extended by com.ibm.btt.http.JSONHttpChannelResponse
All Implemented Interfaces:
ChannelResponse

public class JSONHttpChannelResponse
extends HttpChannelResponse

The channel response used to wrap the HttpServletResponse. This response used by JSONRequestServlet


Field Summary
 
Fields inherited from class com.ibm.btt.http.HttpChannelResponse
response
 
Constructor Summary
JSONHttpChannelResponse(javax.servlet.http.HttpServletResponse response)
          construct the JSONHttpChannelResponse object
 
Method Summary
 void sendResult(ChannelContext channelContext, java.lang.String result)
          Send the result back to the client
 
Methods inherited from class com.ibm.btt.http.HttpChannelResponse
addCookie, getCharacterEncoding, getOutputStream, getResponse, handleServerException, setCharacterEncoding, setContentLength, setContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONHttpChannelResponse

public JSONHttpChannelResponse(javax.servlet.http.HttpServletResponse response)
construct the JSONHttpChannelResponse object

Parameters:
response -
Method Detail

sendResult

public void sendResult(ChannelContext channelContext,
                       java.lang.String result)
                throws java.lang.Exception
Send the result back to the client

Specified by:
sendResult in interface ChannelResponse
Overrides:
sendResult in class HttpChannelResponse
Parameters:
channelContext - the channel context object
result - the result send back to the client
Throws:
java.lang.Exception

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011