类的使用
com.android.volley.Request
使用Request的程序包
-
com.android.volley中Request的使用
返回Request的com.android.volley中的方法修饰符和类型方法说明<T> Request<T>Adds a Request to the dispatch queue.Request<?>Request.setCacheEntry(Cache.Entry entry) Annotates this request with an entry retrieved for it from cache.Request<?>Request.setRequestQueue(RequestQueue requestQueue) Associates this request with the given queue.Request<?>Request.setRetryPolicy(RetryPolicy retryPolicy) Sets the retry policy for this request.final Request<?>Request.setSequence(int sequence) Sets the sequence number of this request.final Request<?>Request.setShouldCache(boolean shouldCache) Set whether or not responses to this request should be cached.Request<?>Set a tag on this request.参数类型为Request的com.android.volley中的方法修饰符和类型方法说明<T> Request<T>Adds a Request to the dispatch queue.booleanintOur comparator sorts from high to low priority, and secondarily by sequence number to provide FIFO ordering.voidRequestQueue.RequestFinishedListener.onRequestFinished(Request<T> request) Called when a request has finished processing.Network.performRequest(Request<?> request) Performs the specified request.voidExecutorDelivery.postError(Request<?> request, VolleyError error) voidResponseDelivery.postError(Request<?> request, VolleyError error) Posts an error for the given request.voidExecutorDelivery.postResponse(Request<?> request, Response<?> response) voidExecutorDelivery.postResponse(Request<?> request, Response<?> response, Runnable runnable) voidResponseDelivery.postResponse(Request<?> request, Response<?> response) Parses a response from the network or cache and delivers it.voidResponseDelivery.postResponse(Request<?> request, Response<?> response, Runnable runnable) Parses a response from the network or cache and delivers it.类型变量类型为Request的com.android.volley中的构造器参数限定符构造器说明CacheDispatcher(BlockingQueue<Request<?>> cacheQueue, BlockingQueue<Request<?>> networkQueue, Cache cache, ResponseDelivery delivery) Creates a new cache triage dispatcher thread.NetworkDispatcher(BlockingQueue<Request<?>> queue, Network network, Cache cache, ResponseDelivery delivery) Creates a new network dispatcher thread. -
com.android.volley.toolbox中Request的使用
修饰符和类型类说明classA synthetic request used for clearing the cache.classA canned request for getting an image at a given URL and calling back with a decoded Bitmap.classA request for retrieving aJSONArrayresponse body at a given URL.classA request for retrieving aJSONObjectresponse body at a given URL, allowing for an optionalJSONObjectto be passed in as part of the request body.classJsonRequest<T>A request for retrieving a T type response body at a given URL that also optionally sends along a JSON body in the request specified.classA canned request for retrieving the response body at a given URL as a String.修饰符和类型方法说明protected Request<android.graphics.Bitmap>ImageLoader.makeImageRequest(String requestUrl, int maxWidth, int maxHeight, android.widget.ImageView.ScaleType scaleType, String cacheKey) 参数类型为Request的com.android.volley.toolbox中的方法修饰符和类型方法说明BasicNetwork.performRequest(Request<?> request) org.apache.http.HttpResponseHttpClientStack.performRequest(Request<?> request, Map<String, String> additionalHeaders) org.apache.http.HttpResponseHttpStack.performRequest(Request<?> request, Map<String, String> additionalHeaders) Performs an HTTP request with the given parameters.org.apache.http.HttpResponseHurlStack.performRequest(Request<?> request, Map<String, String> additionalHeaders) voidRequestFuture.setRequest(Request<?> request) -
net.apexes.commons.volley中Request的使用