public class FromRequest extends Object
Constructor and Description |
---|
FromRequest() |
Modifier and Type | Method and Description |
---|---|
DslProperty |
body()
Request body text (avoid for non-text bodies).
|
DslProperty |
body(String jsonPath)
Request body text for the given JsonPath.
|
DslProperty |
cookie(String key)
Retruns the tempalte for retrieving the first value of a cookie with certain key.
|
DslProperty |
header(String key)
First value of a request header e.g.
|
DslProperty |
header(String key,
int index)
nth value of a request header (zero indexed) e.g.
|
DslProperty |
path()
URL path.
|
DslProperty |
path(int index)
nth value of a URL path (zero indexed) e.g.
|
DslProperty |
query(String key)
First value of a query parameter e.g.
|
DslProperty |
query(String key,
int index)
nth value of a query parameter (zero indexed) e.g.
|
DslProperty |
rawBody()
Unescaped Request body text (avoid for non-text bodies).
|
DslProperty |
rawBody(String jsonPath)
Unescaped Request body text for the given JsonPath.
|
DslProperty |
rawCookie(String key)
Unescaped Returns the template for retrieving the first value of a cookie with
certain key.
|
DslProperty |
rawHeader(String key)
Unescaped First value of a request header e.g.
|
DslProperty |
rawHeader(String key,
int index)
Unescaped nth value of a request header (zero indexed) e.g.
|
DslProperty |
rawPath()
Unescaped URL path.
|
DslProperty |
rawPath(int index)
Unescaped nth value of a URL path (zero indexed) e.g.
|
DslProperty |
rawQuery(String key)
Unescaped First value of a query parameter e.g.
|
DslProperty |
rawQuery(String key,
int index)
Unescaped nth value of a query parameter (zero indexed) e.g.
|
DslProperty |
rawUrl()
Unescaped URL path and query.
|
DslProperty |
url() |
public DslProperty url()
public DslProperty query(String key)
key
- key for the query parampublic DslProperty query(String key, int index)
key
- key for the query paramindex
- index of the query parampublic DslProperty path()
public DslProperty path(int index)
index
- path indexpublic DslProperty header(String key)
key
- header keypublic DslProperty header(String key, int index)
key
- header keyindex
- header indexpublic DslProperty cookie(String key)
key
- cookie keypublic DslProperty body()
public DslProperty body(String jsonPath)
jsonPath
- json path bodypublic DslProperty rawUrl()
public DslProperty rawQuery(String key)
key
- query keypublic DslProperty rawQuery(String key, int index)
key
- query keyindex
- query indexpublic DslProperty rawPath()
public DslProperty rawPath(int index)
index
- path indexpublic DslProperty rawHeader(String key)
key
- header keypublic DslProperty rawHeader(String key, int index)
key
- header keyindex
- header indexpublic DslProperty rawCookie(String key)
key
- cookie keypublic DslProperty rawBody()
public DslProperty rawBody(String jsonPath)
jsonPath
- json path bodyCopyright © 2016–2019 Spring. All rights reserved.