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

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

Introduction

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

Prototype

public final HttpParams getOverrideParams() 

Source Link

Document

Obtains the override parameters of this stack.

Usage

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

/**
 * Creates a copy of a parameter stack.//from ww w . j  a  v  a  2 s. 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.//  ww  w .  ja v  a  2 s .co  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());
}