public abstract static class AbstractRequest.Builder<BuilderType extends AbstractRequest.Builder<?>> extends Object implements Request.Builder
| Modifier and Type | Field and Description |
|---|---|
protected List<UtilProtos.Url.Parameter> |
bodyParameters |
protected List<UtilProtos.Url.Parameter> |
headerParameters |
protected String |
host |
protected HttpManager |
httpManager |
protected net.sf.json.JSON |
jsonBody |
protected List<UtilProtos.Url.Parameter> |
parameters |
protected List<UtilProtos.Url.Part> |
parts |
protected String |
path |
protected int |
port |
protected UtilProtos.Url.Scheme |
scheme |
| Constructor and Description |
|---|
AbstractRequest.Builder() |
| Modifier and Type | Method and Description |
|---|---|
BuilderType |
body(net.sf.json.JSON jsonBody) |
BuilderType |
body(String name,
String value) |
BuilderType |
header(String name,
String value) |
BuilderType |
host(String host) |
BuilderType |
httpManager(HttpManager httpManager) |
BuilderType |
parameter(String name,
String value) |
BuilderType |
part(UtilProtos.Url.Part part) |
BuilderType |
path(String path) |
BuilderType |
port(int port) |
BuilderType |
scheme(UtilProtos.Url.Scheme scheme) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildprotected UtilProtos.Url.Scheme scheme
protected String host
protected int port
protected String path
protected HttpManager httpManager
protected net.sf.json.JSON jsonBody
protected List<UtilProtos.Url.Parameter> parameters
protected List<UtilProtos.Url.Parameter> headerParameters
protected List<UtilProtos.Url.Part> parts
protected List<UtilProtos.Url.Parameter> bodyParameters
public BuilderType httpManager(HttpManager httpManager)
httpManager in interface Request.Builderpublic BuilderType host(String host)
host in interface Request.Builderpublic BuilderType port(int port)
port in interface Request.Builderpublic BuilderType scheme(UtilProtos.Url.Scheme scheme)
scheme in interface Request.Builderpublic BuilderType parameter(String name, String value)
public BuilderType body(String name, String value)
public BuilderType body(net.sf.json.JSON jsonBody)
public BuilderType header(String name, String value)
public BuilderType part(UtilProtos.Url.Part part)
public BuilderType path(String path)
Copyright © 2015. All rights reserved.