com.vaadin.terminal.gwt.server.


Interface AbstractCommunicationManager.Response

Enclosing class:

AbstractCommunicationManager

public static interface AbstractCommunicationManager.Response

Generic interface of a (HTTP or Portlet) response from the application. This is a wrapper interface that allows AbstractCommunicationManager to use a unified API.

Author:

peholmst

See Also:

ServletResponse, PortletResponse

Method Summary
 OutputStream getOutputStream()
          Gets the output stream to which the response can be written.
 Object getWrappedResponse()
          Gets the wrapped response object, usually a class implementing either ServletResponse or PortletResponse.
 void setContentType(String type)
          Sets the MIME content type for the response to be communicated to the browser.
 

Method Detail

getOutputStream

OutputStream getOutputStream()
                             throws IOException

Gets the output stream to which the response can be written.

Returns:
Throws:
IOException

setContentType

void setContentType(String type)

Sets the MIME content type for the response to be communicated to the browser.

Parameters:
type -

getWrappedResponse

Object getWrappedResponse()

Gets the wrapped response object, usually a class implementing either ServletResponse or PortletResponse.

Returns:
wrapped request object