public class Query extends Hash
Modifier and Type | Field and Description |
---|---|
static int |
DELETE |
static int |
GET |
static int |
HEAD |
static int |
POST |
static int |
PUT |
Modifier and Type | Method and Description |
---|---|
java.util.HashMap |
header() |
java.lang.String |
header(java.lang.String name)
The headers are stored and fetched as lower case.
|
Input |
input() |
long |
length() |
int |
method() |
long |
modified() |
java.lang.String |
parameters()
Returns the parameters of the request.
|
void |
parse()
Parse the parameters from GET or POST.
|
void |
parse(int size)
Parse the parameters from GET or POST.
|
java.lang.String |
path() |
boolean |
policy() |
java.lang.String |
toString() |
java.lang.String |
type() |
java.lang.String |
version() |
big, big, bit, medium, medium, put, put, put, put, put, put, small, small, string, string, tiny, tiny
public static final int GET
public static final int POST
public static final int PUT
public static final int DELETE
public static final int HEAD
public void parse() throws java.lang.Exception
java.lang.Exception
public void parse(int size) throws java.lang.Exception
size
- Maximum amount of bytes.java.lang.Exception
public boolean policy()
public int method()
public java.lang.String path()
public java.lang.String version()
public java.lang.String type()
public long modified()
public long length()
public java.lang.String header(java.lang.String name)
name
- public java.lang.String parameters()
parse()
first.
Important: this String is not decoded, because you want to be able
to parse parameters with equal signs in them.public java.util.HashMap header()
public Input input()