public interface WebRequest
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAddress()
Returns the Internet Protocol (IP) address of the client or last proxy
that sent the request.
|
services.moleculer.stream.PacketStream |
getBody()
Returns the request body as PacketStream.
|
int |
getContentLength()
Returns the length, in bytes, of the request body and made available by
the input stream, or -1 if the length is not known ir is greater than
Integer.MAX_VALUE.
|
java.lang.String |
getContentType()
Returns the MIME type of the body of the request, or null if the type is
not known.
|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the specified request header as a String.
|
java.util.Iterator<java.lang.String> |
getHeaders()
Returns an iterator of all the header names this request contains.
|
java.lang.Object |
getInternalObject()
Returns the internal object of this WebRequest.
|
java.lang.String |
getMethod()
Returns the name of the HTTP method with which this request was made, for
example, GET, POST, or PUT.
|
java.lang.String |
getPath()
Returns any extra path information associated with the URL the client
sent when it made this request.
|
java.lang.String |
getProtocol()
Returns the name and version of the protocol the request uses in the form
protocol/majorVersion.minorVersion.
|
java.lang.String |
getQuery()
Returns the query string that is contained in the request URL after the
path.
|
boolean |
isMultipart()
Checks if the Content-Type header defines a multipart request.
|
java.lang.String getAddress()
java.lang.String getMethod()
java.lang.String getPath()
java.lang.String getQuery()
int getContentLength()
java.lang.String getContentType()
services.moleculer.stream.PacketStream getBody()
java.lang.String getHeader(java.lang.String name)
name - name a String specifying the header namejava.util.Iterator<java.lang.String> getHeaders()
boolean isMultipart()
java.lang.String getProtocol()
String containing the protocol name and version
numberjava.lang.Object getInternalObject()