Example usage for org.apache.http.impl.client ClientParamsStack getApplicationParams

List of usage examples for org.apache.http.impl.client ClientParamsStack getApplicationParams

Introduction

In this page you can find the example usage for org.apache.http.impl.client ClientParamsStack getApplicationParams.

Prototype

public final HttpParams getApplicationParams() 

Source Link

Document

Obtains the application parameters of this stack.

Usage

From source file:org.apache.http.impl.client.ClientParamsStack.java

/**
 * Creates a copy of a parameter stack.//from  w  ww  .  jav  a 2s . c  o m
 * The new stack will have the exact same entries as the argument stack.
 * There is no copying of parameters.
 *
 * @param stack     the stack to copy
 */
public ClientParamsStack(ClientParamsStack stack) {
    this(stack.getApplicationParams(), stack.getClientParams(), stack.getRequestParams(),
            stack.getOverrideParams());
}

From source file:org.apache.http.impl.client.ClientParamsStack.java

/**
 * Creates a modified copy of a parameter stack.
 * The new stack will contain the explicitly passed elements.
 * For elements where the explicit argument is <code>null</code>,
 * the corresponding element from the argument stack is used.
 * There is no copying of parameters./*from ww w.j a v  a  2 s  .c o m*/
 *
 * @param stack     the stack to modify
 * @param aparams   application parameters, or <code>null</code>
 * @param cparams   client parameters, or <code>null</code>
 * @param rparams   request parameters, or <code>null</code>
 * @param oparams   override parameters, or <code>null</code>
 */
public ClientParamsStack(ClientParamsStack stack, HttpParams aparams, HttpParams cparams, HttpParams rparams,
        HttpParams oparams) {
    this((aparams != null) ? aparams : stack.getApplicationParams(),
            (cparams != null) ? cparams : stack.getClientParams(),
            (rparams != null) ? rparams : stack.getRequestParams(),
            (oparams != null) ? oparams : stack.getOverrideParams());
}