Package javaforce.service
Class WebResponse
java.lang.Object
java.io.OutputStream
javaforce.service.WebResponse
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidReturns buffered output stream.voidsendRedirect(String url) voidsetContentType(String type) voidvoidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
Constructor Details
-
WebResponse
public WebResponse()
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
getOutputStream
Returns buffered output stream. When doGet() or doPut() returns the headers and content are sent to client.- Returns:
- OutputStream
-
setStatus
-
setContentType
-
addCookie
-
addHeader
-
sendRedirect
-