本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例7: request
import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
/** The original HTTP request. */
AsyncHttpRequest request();
示例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);
}
示例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);
}
示例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());
}
示例11: getHttpRequest
import com.loopj.android.http.AsyncHttpRequest; //导入依赖的package包/类
AsyncHttpRequest getHttpRequest(DefaultHttpClient client, HttpContext httpContext, HttpUriRequest uriRequest, String contentType, ResponseHandlerInterface responseHandler, Context context);