|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.server.httpd.ServletResponseAdapter
public class ServletResponseAdapter
Constructor Summary | |
---|---|
ServletResponseAdapter(javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
void |
flushBuffer()
Flushes the output buffer to the client. |
String |
getContentType()
Gets the content type that will be sent to the browser. |
String |
getHeader(String name)
Gets a header based on the name passed in |
OutputStream |
getOutputStream()
Gets the OutputStream to send data to the browser |
PrintWriter |
getPrintWriter()
Gets the PrintWriter to send data to the browser |
int |
getStatusCode()
Gets the response status code that will be sent to the browser |
void |
setContentType(String type)
Sets the content type to be sent back to the browser. |
void |
setHeader(String name,
String value)
Sets a header to be sent back to the browser |
void |
setStatusCode(int code)
Sets the HTTP response status code to be sent to the browser. |
void |
setStatusMessage(String responseString)
Sets the response string to be sent to the browser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletResponseAdapter(javax.servlet.http.HttpServletResponse response)
Method Detail |
---|
public PrintWriter getPrintWriter() throws IOException
HttpResponse
getPrintWriter
in interface HttpResponse
IOException
public void setHeader(String name, String value)
HttpResponse
setHeader
in interface HttpResponse
name
- the header namevalue
- the header valuepublic String getHeader(String name)
HttpResponse
getHeader
in interface HttpResponse
name
- the header name
public OutputStream getOutputStream()
HttpResponse
getOutputStream
in interface HttpResponse
public void setStatusCode(int code)
HttpResponse
setStatusCode
in interface HttpResponse
code
- the status code to be sent to the browserpublic int getStatusCode()
HttpResponse
getStatusCode
in interface HttpResponse
public void setContentType(String type)
HttpResponse
setContentType
in interface HttpResponse
type
- the type to be sent to the browser (i.e. "text/html")public String getContentType()
HttpResponse
getContentType
in interface HttpResponse
public void setStatusMessage(String responseString)
HttpResponse
setStatusMessage
in interface HttpResponse
responseString
- the response stringpublic void flushBuffer() throws IOException
HttpResponse
flushBuffer
in interface HttpResponse
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |