protected abstract static class AbstractRequestFactory.AbstractRequestBuilder extends Object implements RestRequestBuilder
RestRequestBuilder.| Modifier and Type | Field and Description |
|---|---|
protected String[] |
action
Actions of the request (will by default give path of the request).
|
protected RestMethod |
method
REST Method to use for this request.
|
protected String |
name
Name of the request builder.
|
| Constructor and Description |
|---|
AbstractRequestFactory.AbstractRequestBuilder(String name,
RestMethod method,
String... action) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRequestArgs(int nbRequires,
String requires,
Object... args) |
RestRequest |
create(Object... args)
Create the request given the
args. |
Map<String,File> |
getAttachments(Object... args)
Computes the map of attachments associated to this request
|
Map<String,String> |
getHeaders(Object... args)
Computes the headers associated to this request
|
String |
getName() |
String[] |
getParameters(Object... args)
Computes the parameters associated to this requet.
|
String[] |
getPath(Object... args)
Computes the path associated to this request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckRequestArgsprotected String name
protected String[] action
protected final RestMethod method
RestMethodpublic AbstractRequestFactory.AbstractRequestBuilder(String name, RestMethod method, String... action)
public String getName()
getName in interface RestRequestBuilderpublic String[] getParameters(Object... args)
RestRequestBuildergetParameters in interface RestRequestBuilderargs - the args of the requestpublic String[] getPath(Object... args)
RestRequestBuildergetPath in interface RestRequestBuilderargs - the args of the requestpublic Map<String,File> getAttachments(Object... args)
RestRequestBuildergetAttachments in interface RestRequestBuilderargs - the args of the requestpublic Map<String,String> getHeaders(Object... args)
RestRequestBuildergetHeaders in interface RestRequestBuilderargs - the args of the requestpublic RestRequest create(Object... args)
RestRequestBuilderargs.create in interface RestRequestBuilderargs - args to create the requestCopyright © 2009-2012 CodeLutin. All Rights Reserved.