当前位置: 首页>>代码示例>>Java>>正文


Java AsyncHttpRequest类代码示例

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


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

示例1: newAsyncHttpRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
protected AsyncHttpRequest newAsyncHttpRequest(DefaultHttpClient client, HttpContext httpContext, HttpUriRequest uriRequest, String contentType, ResponseHandlerInterface responseHandler, Context context) {
    AsyncHttpRequest httpRequest = getHttpRequest(client, httpContext, uriRequest, contentType, responseHandler, context);
    return httpRequest == null
            ? super.newAsyncHttpRequest(client, httpContext, uriRequest, contentType, responseHandler, context)
            : httpRequest;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:SampleParentActivity.java

示例2: getHttpRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
public AsyncHttpRequest getHttpRequest(DefaultHttpClient client, HttpContext httpContext, HttpUriRequest uriRequest, String contentType, ResponseHandlerInterface responseHandler, Context context) {
    return null;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:SampleParentActivity.java

示例3: getHttpRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
public AsyncHttpRequest getHttpRequest(DefaultHttpClient client, HttpContext httpContext, HttpUriRequest uriRequest, String contentType, ResponseHandlerInterface responseHandler, Context context) {
    return new PrePostProcessRequest(client, httpContext, uriRequest, responseHandler);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:PrePostProcessingSample.java

示例4: onPreProcessRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
public void onPreProcessRequest(AsyncHttpRequest request) {
    debugProcessing(LOG_TAG, "Pre",
            "Request is about to be pre-processed", LIGHTGREY);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:PrePostProcessingSample.java

示例5: onPostProcessRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
public void onPostProcessRequest(AsyncHttpRequest request) {
    debugProcessing(LOG_TAG, "Post",
            "Request is about to be post-processed", DARKGREY);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:PrePostProcessingSample.java

示例6: newAsyncHttpRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
protected AsyncHttpRequest newAsyncHttpRequest(DefaultHttpClient client, HttpContext httpContext, HttpUriRequest uriRequest, String contentType, ResponseHandlerInterface responseHandler, Context context) {
    return new CheckNetAsyncHttpRequest(client, httpContext, uriRequest, responseHandler);
}
 
开发者ID:hsj-xiaokang,项目名称:OSchina_resources_android,代码行数:5,代码来源:ApiHttpClient.java

示例7: request

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
/** The original HTTP request. */
AsyncHttpRequest request();
 
开发者ID:Tamicer,项目名称:Tamic_Retrofit,代码行数:3,代码来源:Call.java

示例8: onPreProcessRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
public void onPreProcessRequest(AsyncHttpRequest request) {
    debugProcessing(LOG_TAG, "Pre",
        "Request is about to be pre-processed", LIGHTGREY);
}
 
开发者ID:lookwhatlook,项目名称:WeiboWeiBaTong,代码行数:6,代码来源:PrePostProcessingSample.java

示例9: onPostProcessRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
@Override
public void onPostProcessRequest(AsyncHttpRequest request) {
    debugProcessing(LOG_TAG, "Post",
        "Request is about to be post-processed", DARKGREY);
}
 
开发者ID:lookwhatlook,项目名称:WeiboWeiBaTong,代码行数:6,代码来源:PrePostProcessingSample.java

示例10: newAsyncHttpRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
/**
 * Instantiate a new asynchronous HTTP request for the passed parameters.
 *
 * @param client
 *            HttpClient to be used for request, can differ in single
 *            requests
 * @param contentType
 *            MIME body type, for POST and PUT requests, may be null
 * @param context
 *            Context of Android application, to hold the reference of
 *            request
 * @param httpContext
 *            HttpContext in which the request will be executed
 * @param responseHandler
 *            ResponseHandler or its subclass to put the response into
 * @param uriRequest
 *            instance of HttpUriRequest, which means it must be of
 *            HttpDelete, HttpPost, HttpGet, HttpPut, etc.
 * @return AsyncHttpRequest ready to be dispatched
 */
@Override
protected AsyncHttpRequest newAsyncHttpRequest(DefaultHttpClient client,
		HttpContext httpContext, HttpUriRequest uriRequest,
		String contentType, ResponseHandlerInterface responseHandler,
		Context context) {
	return new AutoHttpRequest(client, httpContext, uriRequest,
			responseHandler, getHttpConfig());
}
 
开发者ID:ccliu2015,项目名称:love,代码行数:29,代码来源:HttpManager.java

示例11: getHttpRequest

import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
AsyncHttpRequest getHttpRequest(DefaultHttpClient client, HttpContext httpContext, HttpUriRequest uriRequest, String contentType, ResponseHandlerInterface responseHandler, Context context); 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:2,代码来源:SampleInterface.java


注:本文中的com.loopj.android.http.AsyncHttpRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。