public class HttpBuilder extends Object
Constructor and Description |
---|
HttpBuilder(CouchDbAuthenticate auth,
String url,
String schema,
RequestParams requestParams) |
Modifier and Type | Method and Description |
---|---|
String |
getHostContext() |
Param |
getProperty(Queryable queryable,
String name) |
String |
getUrlForAddOrUpdateOrDelete(Queryable queryable) |
String |
getUrlForAllDocs(Queryable queryable) |
String |
getUrlForBulk() |
String |
getUrlForDesign()
Return the URL for _design of documents.
|
String |
getUrlForGet(Queryable queryable) |
String |
getUrlForView(Queryable queryable) |
org.apache.http.client.methods.HttpPost |
newFind()
Return the HTTP POST for _find request.
|
org.apache.http.client.methods.HttpPost |
newFind(String bodyStr)
Return the HTTP POST for _find request.
|
void |
setHeader(org.apache.http.client.methods.HttpRequestBase http) |
public HttpBuilder(CouchDbAuthenticate auth, String url, String schema, RequestParams requestParams)
public void setHeader(org.apache.http.client.methods.HttpRequestBase http)
public String getUrlForDesign()
http://{host}:{port}/{schema}/_design/
public org.apache.http.client.methods.HttpPost newFind(String bodyStr)
http://{host}:{port}/{schema}/_find/
bodyStr
- body from HTTP POST requestbodyStr
as body contentpublic org.apache.http.client.methods.HttpPost newFind()
http://{host}:{port}/{schema}/_find/
public String getUrlForView(Queryable queryable)
public String getUrlForGet(Queryable queryable)
public String getUrlForAddOrUpdateOrDelete(Queryable queryable)
public String getUrlForAllDocs(Queryable queryable)
public String getUrlForBulk()
public String getHostContext()
public Param getProperty(Queryable queryable, String name)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.