com.ibm.watson.developer_cloud.http.RequestBuilder.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中com.ibm.watson.developer_cloud.http.RequestBuilder.<init>方法的一些代码示例,展示了RequestBuilder.<init>的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RequestBuilder.<init>方法的具体详情如下:
包路径:com.ibm.watson.developer_cloud.http.RequestBuilder
类名称:RequestBuilder
方法名:<init>

RequestBuilder.<init>介绍

[英]Instantiates a new request.
[中]实例化一个新请求。

代码示例

代码示例来源:origin: watson-developer-cloud/java-sdk

/**
 * The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder put(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.PUT, url);
}

代码示例来源:origin: watson-developer-cloud/java-sdk

/**
 * The POST request method is designed to request that a web server accept the data enclosed in the request
 * message's body for storage. It is often used when uploading a file or submitting a completed web form.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder post(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.POST, url);
}

代码示例来源:origin: com.ibm.watson.developer_cloud/core

/**
 * The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder patch(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.PATCH, url);
}

代码示例来源:origin: watson-developer-cloud/java-sdk

/**
 * The DELETE method requests that the origin server delete the resource identified by the Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder delete(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.DELETE, url);
}

代码示例来源:origin: watson-developer-cloud/java-sdk

/**
 * The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder get(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.GET, url);
}

代码示例来源:origin: watson-developer-cloud/java-sdk

/**
 * The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder patch(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.PATCH, url);
}

代码示例来源:origin: watson-developer-cloud/java-sdk

/**
 * The HEAD method means retrieve the headers for the resource identified by the Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder head(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.HEAD, url);
}

代码示例来源:origin: com.ibm.watson.developer_cloud/core

/**
 * The DELETE method requests that the origin server delete the resource identified by the Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder delete(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.DELETE, url);
}

代码示例来源:origin: com.ibm.watson.developer_cloud/core

/**
 * The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder get(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.GET, url);
}

代码示例来源:origin: com.ibm.watson.developer_cloud/core

/**
 * The POST request method is designed to request that a web server accept the data enclosed in the request
 * message's body for storage. It is often used when uploading a file or submitting a completed web form.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder post(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.POST, url);
}

代码示例来源:origin: com.ibm.watson.developer_cloud/core

/**
 * The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder put(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.PUT, url);
}

代码示例来源:origin: com.ibm.watson.developer_cloud/core

/**
 * The HEAD method means retrieve the headers for the resource identified by the Request-URI.
 *
 * @param url the URL
 *
 * @return this
 */
public static RequestBuilder head(HttpUrl url) {
 return new RequestBuilder(HTTPMethod.HEAD, url);
}

相关文章