etm.contrib.console.standalone
Class StandaloneConsoleResponse

java.lang.Object
  extended by etm.contrib.console.standalone.StandaloneConsoleResponse
All Implemented Interfaces:
ConsoleResponse

public class StandaloneConsoleResponse
extends java.lang.Object
implements ConsoleResponse

Response abstraction for standalone HTTP console.

Version:
$Revision: 231 $
Author:
void.fm

Field Summary
protected static byte[] LINEFEED
           
 
Constructor Summary
StandaloneConsoleResponse(java.io.OutputStream aDestination)
           
 
Method Summary
 void addHeader(java.lang.String header, java.lang.String value)
           
 void flush()
           
 void sendRedirect(java.lang.String target, java.util.Map parameters)
           
 void sendStatus(int statusCode, java.lang.String description)
           
 void write(byte[] content)
           
 void write(char[] content)
           
 void write(java.lang.String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINEFEED

protected static final byte[] LINEFEED
Constructor Detail

StandaloneConsoleResponse

public StandaloneConsoleResponse(java.io.OutputStream aDestination)
Method Detail

addHeader

public void addHeader(java.lang.String header,
                      java.lang.String value)
Specified by:
addHeader in interface ConsoleResponse

write

public void write(java.lang.String content)
           throws java.io.IOException
Specified by:
write in interface ConsoleResponse
Throws:
java.io.IOException

write

public void write(char[] content)
           throws java.io.IOException
Specified by:
write in interface ConsoleResponse
Throws:
java.io.IOException

write

public void write(byte[] content)
           throws java.io.IOException
Specified by:
write in interface ConsoleResponse
Throws:
java.io.IOException

sendRedirect

public void sendRedirect(java.lang.String target,
                         java.util.Map parameters)
Specified by:
sendRedirect in interface ConsoleResponse

sendStatus

public void sendStatus(int statusCode,
                       java.lang.String description)
Specified by:
sendStatus in interface ConsoleResponse

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.