List of usage examples for org.apache.http.impl.client ClientParamsStack getClientParams
public final HttpParams getClientParams()
From source file:org.apache.http.impl.client.ClientParamsStack.java
/** * Creates a copy of a parameter stack.// ww w. j a va2 s .com * 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 www .java 2s .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()); }