Errai 3.0.1-SNAPSHOT

org.jboss.websockets.oio
Interface HttpResponseBridge


public interface HttpResponseBridge

This is an abstraction of an http response so that this code can be re-used in different HTTP Engines (i.e. servlet). Instances of this class usually delegate to the underyling container's implementation of an http response.

Version:
$Revision: 1 $
Author:
Bill Burke

Method Summary
 String getHeader(String name)
           
 OutputStream getOutputStream()
           
 void sendUpgrade()
          Send the switching protocol HTTP status and commit the response by flushing the buffer.
 void setHeader(String name, String val)
           
 void startUpgrade()
          Start the connection upgrade process.
 

Method Detail

getHeader

String getHeader(String name)

setHeader

void setHeader(String name,
               String val)

getOutputStream

OutputStream getOutputStream()

startUpgrade

void startUpgrade()
Start the connection upgrade process. After calling this method, data will be available raw from the connection. Calling this method is optional if no read/write are needed during the upgrade process.


sendUpgrade

void sendUpgrade()
                 throws IOException
Send the switching protocol HTTP status and commit the response by flushing the buffer.

Throws:
IOException

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.