public interface HTTPRequest
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the request.
|
byte[] |
getContent()
Returns a byte array containing the request content.
|
String |
getHeader(String name)
Get specified header.
|
Map<String,String> |
getHeaders()
Get headers.
|
String |
getMethodName()
Get the method Name.
|
String |
getParameter(String name)
Get specified parameter.
|
String |
getRemoteAddress()
Get the remote address of the HTTP request.
|
long |
getTimestamp()
Return the request time.
|
String |
getURL()
Returns the request URL.
|
void |
writeResponse(ByteBuffer buffer)
Write a response.
|
String getMethodName()
String getURL()
String getHeader(String name)
name
- header nameMap<String,String> getHeaders()
Return all of the headers
String getRemoteAddress()
String getParameter(String name)
name
- parameter namebyte[] getContent()
long getTimestamp()
void writeResponse(ByteBuffer buffer) throws APIException
This will write the contents of the supplied buffer from its position to its limit.
buffer
- containing the responseAPIException
- if unable to writevoid close()
This closes its underlying channel.
Copyright © 2022 Push Technology Ltd. All Rights Reserved.