public interface RestRequestBuilderFactory
RequestBuilder
objects for a given RestAction
.Modifier and Type | Method and Description |
---|---|
<A extends RestAction<?>> |
build(A action,
String securityToken)
Build a
RequestBuilder object for the given action. |
<A extends RestAction<?>> RequestBuilder build(A action, String securityToken) throws ActionException
RequestBuilder
object for the given action.A
- the action type.action
- the RestAction
for which to build the request.securityToken
- the security token to add to the RequestBuilder
. Usually the value bound to
@XsrfHeaderName
.RequestBuilder
object.ActionException
- if an exception occured while creating the RequestBuilder
.Copyright © 2010–2014 Arcbees. All rights reserved.