public static interface RequestReceiver.TransportContext
| Modifier and Type | Method and Description |
|---|---|
RequestReceiver.RequestContext |
getRequestContext()
Gets information about the client request.
|
void |
send(InputStream response,
int responseLength,
boolean isFinal)
Sends a response frame for the request which is associated with this
transport handle.
|
void |
setHeader(String name,
String value)
Sets a response header with the given name and value.
|
void send(InputStream response, int responseLength, boolean isFinal) throws IOException
response - response frame; must not be nullresponseLength - length of the request as number of bytes; this
is just a hint to the implementation, pass
-1 if the length is unknownisFinal - whether this is the final response frame for the
requestIOException - transport errorRequestReceiver.RequestContext getRequestContext()
void setHeader(String name, String value)
name - the name of the headervalue - the header valueCopyright © 2023. All rights reserved.