|
|||||||||
| 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. |
java.lang.String |
getContentType()
Gets the content type that will be sent to the browser. |
java.lang.String |
getHeader(java.lang.String name)
Gets a header based on the name passed in |
java.io.OutputStream |
getOutputStream()
Gets the OutputStream to send data to the browser |
java.io.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(java.lang.String type)
Sets the content type to be sent back to the browser. |
void |
setHeader(java.lang.String name,
java.lang.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(java.lang.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 java.io.PrintWriter getPrintWriter()
throws java.io.IOException
HttpResponse
getPrintWriter in interface HttpResponsejava.io.IOException
public void setHeader(java.lang.String name,
java.lang.String value)
HttpResponse
setHeader in interface HttpResponsename - the header namevalue - the header valuepublic java.lang.String getHeader(java.lang.String name)
HttpResponse
getHeader in interface HttpResponsename - the header name
public java.io.OutputStream getOutputStream()
HttpResponse
getOutputStream in interface HttpResponsepublic void setStatusCode(int code)
HttpResponse
setStatusCode in interface HttpResponsecode - the status code to be sent to the browserpublic int getStatusCode()
HttpResponse
getStatusCode in interface HttpResponsepublic void setContentType(java.lang.String type)
HttpResponse
setContentType in interface HttpResponsetype - the type to be sent to the browser (i.e. "text/html")public java.lang.String getContentType()
HttpResponse
getContentType in interface HttpResponsepublic void setStatusMessage(java.lang.String responseString)
HttpResponse
setStatusMessage in interface HttpResponseresponseString - the response string
public void flushBuffer()
throws java.io.IOException
HttpResponse
flushBuffer in interface HttpResponsejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||