public class ServletServletResponse extends Object implements NativeResponse
| Constructor and Description |
|---|
ServletServletResponse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
committed() |
void |
end() |
Optional<String> |
header(String name) |
void |
header(String name,
Iterable<String> values) |
void |
header(String name,
String value) |
List<String> |
headers(String name) |
void |
reset() |
void |
send(byte[] bytes) |
void |
send(ByteBuffer buffer) |
void |
send(FileChannel file) |
void |
send(FileChannel channel,
long position,
long count) |
void |
send(InputStream stream) |
int |
statusCode() |
void |
statusCode(int statusCode) |
public ServletServletResponse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp)
public List<String> headers(String name)
headers in interface NativeResponsepublic Optional<String> header(String name)
header in interface NativeResponsepublic void header(String name, String value)
header in interface NativeResponsepublic void header(String name, Iterable<String> values)
header in interface NativeResponsepublic void send(byte[] bytes)
throws Exception
send in interface NativeResponseExceptionpublic void send(ByteBuffer buffer) throws Exception
send in interface NativeResponseExceptionpublic void send(FileChannel file) throws Exception
send in interface NativeResponseExceptionpublic void send(FileChannel channel, long position, long count) throws Exception
send in interface NativeResponseExceptionpublic void send(InputStream stream) throws Exception
send in interface NativeResponseExceptionpublic int statusCode()
statusCode in interface NativeResponsepublic void statusCode(int statusCode)
statusCode in interface NativeResponsepublic boolean committed()
committed in interface NativeResponsepublic void end()
end in interface NativeResponsepublic void reset()
reset in interface NativeResponseCopyright © 2019. All rights reserved.