etm.contrib.console.servlet
Class ServletConsoleResponse

java.lang.Object
  extended by etm.contrib.console.servlet.ServletConsoleResponse
All Implemented Interfaces:
ConsoleResponse

public class ServletConsoleResponse
extends java.lang.Object
implements ConsoleResponse

Response abstraction for servlet based HTTP console.

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

Constructor Summary
ServletConsoleResponse(javax.servlet.http.HttpServletResponse aResponse)
           
 
Method Summary
 void addHeader(java.lang.String header, java.lang.String value)
           
 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
 

Constructor Detail

ServletConsoleResponse

public ServletConsoleResponse(javax.servlet.http.HttpServletResponse aResponse)
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


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