• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java HttpMessageDecoder类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中net.oauth.http.HttpMessageDecoder的典型用法代码示例。如果您正苦于以下问题:Java HttpMessageDecoder类的具体用法?Java HttpMessageDecoder怎么用?Java HttpMessageDecoder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

HttpMessageDecoder类属于net.oauth.http包,在下文中一共展示了HttpMessageDecoder类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: access

点赞 2

import net.oauth.http.HttpMessageDecoder; //导入依赖的package包/类
/**
 * Send a request and return the response. Don't try to decide whether the
 * response indicates success; merely return it.
 */
public OAuthResponseMessage access(OAuthMessage request,  net.oauth.ParameterStyle style) throws IOException {
    HttpMessage httpRequest = HttpMessage.newRequest(request, style);
    HttpResponseMessage httpResponse = http.execute(httpRequest, httpParameters);
    httpResponse = HttpMessageDecoder.decode(httpResponse);
    return new OAuthResponseMessage(httpResponse);
}
 

开发者ID:sakaiproject,
项目名称:sakai,
代码行数:11,
代码来源:OAuthClient.java

示例2: access

点赞 2

import net.oauth.http.HttpMessageDecoder; //导入依赖的package包/类
/**
 * Send a request and return the response. Don't try to decide whether the
 * response indicates success; merely return it.
 */
public OAuthResponseMessage access(OAuthMessage request,
		ParameterStyle style) throws IOException {
	HttpMessage httpRequest = HttpMessage.newRequest(request, style);
	HttpResponseMessage httpResponse = http.execute(httpRequest,
			httpParameters);
	httpResponse = HttpMessageDecoder.decode(httpResponse);
	return new OAuthResponseMessage(httpResponse);
}
 

开发者ID:Simbacode,
项目名称:mobipayments,
代码行数:13,
代码来源:OAuthClient.java

示例3: MessageWithBody

点赞 2

import net.oauth.http.HttpMessageDecoder; //导入依赖的package包/类
public MessageWithBody(String method, String URL,
        Collection<OAuth.Parameter> parameters,
        String contentType, byte[] body) {
    super(method, URL, parameters);
    this.body = body;
    Collection<Map.Entry<String, String>> headers = getHeaders();
    headers.add(new OAuth.Parameter(HttpMessage.ACCEPT_ENCODING, HttpMessageDecoder.ACCEPTED));
    if (body != null) {
        headers.add(new OAuth.Parameter(HttpMessage.CONTENT_LENGTH, String.valueOf(body.length)));
    }
    if (contentType != null) {
        headers.add(new OAuth.Parameter(HttpMessage.CONTENT_TYPE, contentType));
    }
}
 

开发者ID:groovenauts,
项目名称:jmeter_oauth_plugin,
代码行数:15,
代码来源:OAuthClientTest.java

示例4: access

点赞 2

import net.oauth.http.HttpMessageDecoder; //导入依赖的package包/类
/**
 * Send a request and return the response. Don't try to decide whether the
 * response indicates success; merely return it.
 */
public OAuthResponseMessage access(OAuthMessage request, ParameterStyle style) throws IOException {
    HttpMessage httpRequest = HttpMessage.newRequest(request, style);
    HttpResponseMessage httpResponse = http.execute(httpRequest, httpParameters);
    httpResponse = HttpMessageDecoder.decode(httpResponse);
    return new OAuthResponseMessage(httpResponse);
}
 

开发者ID:aoprisan,
项目名称:net.oauth,
代码行数:11,
代码来源:OAuthClient.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)