public interface HttpMessageAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value)
Add a header to the message -- may be called multiple times for same "name"
|
boolean |
containsHeader(String name) |
Object |
getClientAttachment() |
ByteBuffer |
getData() |
String |
getHeader(String name) |
Collection<Map.Entry<String,String>> |
getHeaders() |
List<String> |
getHeaders(String name) |
String |
getLocalAddress() |
int |
getLocalPort() |
int |
getMajorVersion() |
int |
getMinorVersion() |
String |
getRemoteAddress() |
int |
getRemotePort() |
org.mozilla.javascript.Scriptable |
getScriptObject() |
boolean |
hasData()
Return true if the message has any data at all.
|
boolean |
isLocalIPv6()
Return true if the local address is definitely IPv6
|
boolean |
isSelfContained()
Return true if the message is self-contained, which means that no chunks will follow.
|
void |
removeHeader(String name) |
void |
setClientAttachment(Object obj)
The caller may also attach an object here that will be set on the "request" object in Java as the
"attachment" field.
|
void |
setData(ByteBuffer buf) |
void |
setHeader(String name,
List<String> values)
Replace all existing headers with this one.
|
void |
setScriptObject(org.mozilla.javascript.Scriptable obj)
The JavaScript "request" or "response" object is attached here.
|
void |
setVersion(String protocol,
int major,
int minor) |
Collection<Map.Entry<String,String>> getHeaders()
void addHeader(String name, String value)
void setHeader(String name, List<String> values)
boolean containsHeader(String name)
void removeHeader(String name)
boolean hasData()
boolean isSelfContained()
ByteBuffer getData()
void setData(ByteBuffer buf)
int getMajorVersion()
int getMinorVersion()
void setVersion(String protocol, int major, int minor)
String getLocalAddress()
int getLocalPort()
boolean isLocalIPv6()
String getRemoteAddress()
int getRemotePort()
void setScriptObject(org.mozilla.javascript.Scriptable obj)
org.mozilla.javascript.Scriptable getScriptObject()
void setClientAttachment(Object obj)
Object getClientAttachment()
Copyright © 2016 Apigee Corporation. All Rights Reserved.