Examples of removeParameter()


Examples of org.apache.click.servlet.MockRequest.removeParameter()

        valid = form.onSubmitCheck(page, "/invalid-submit.html");
        Assert.assertTrue(valid);
       
        // Now imagine the SUBMIT_CHECK token is removed by a hacker. To simulate
        // such a scenario we remove the submitTokenName from the request paramters.
        request.removeParameter(submitTokenName);
        valid = form.onSubmitCheck(page, "/invalid-submit.html");
        Assert.assertFalse(valid);
    }

    /**
 
View Full Code Here

Examples of org.apache.commons.httpclient.methods.PostMethod.removeParameter()

        }
      }
      // System.out.println( "" ); //$NON-NLS-1$

      // Just in case someone is trying to spoof the proxy
      method.removeParameter( "_TRUST_USER_" ); //$NON-NLS-1$

      // Get the user from the session
      IPentahoSession userSession = getPentahoSession( request );
      String name = userSession.getName();
View Full Code Here

Examples of org.apache.excalibur.source.SourceParameters.removeParameter()

                    url.setUser(principal);
                    url.setPassword(password);
                }
            }

            sp.removeParameter("cocoon:webdav-depth");
            sp.removeParameter("cocoon:webdav-action");
            sp.removeParameter("cocoon:webdav-principal");
            sp.removeParameter("cocoon:webdav-password");
           
            // set the qs without WebdavSource specific parameters
View Full Code Here

Examples of org.apache.http.params.BasicHttpParams.removeParameter()

    private String authorizationToken = null;

    public ApacheConnector()
    {
        final HttpParams params = new BasicHttpParams();
        params.removeParameter("User-Agent");
        params.setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BEST_MATCH);
        // HttpConnectionParams.setConnectionTimeout(params, 150000);
        // HttpConnectionParams.setSoTimeout(params, socketTimeoutMillis);
        httpClient = new DefaultHttpClient(params);
        cookieStore = new BasicCookieStore();
View Full Code Here

Examples of org.apache.http.params.HttpParams.removeParameter()

        InetAddress inetAddr = InetAddress.getByName(ipSource);
        requestParams.setParameter(ConnRoutePNames.LOCAL_ADDRESS, inetAddr);
    } else if (localAddress != null){
        requestParams.setParameter(ConnRoutePNames.LOCAL_ADDRESS, localAddress);
    } else { // reset in case was set previously
        requestParams.removeParameter(ConnRoutePNames.LOCAL_ADDRESS);
    }

    int rto = getResponseTimeout();
    if (rto > 0){
        requestParams.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, rto);
View Full Code Here

Examples of org.apache.http.params.HttpParams.removeParameter()

    if (inetAddr != null) {// Use special field ip source address (for pseudo 'ip spoofing')
        requestParams.setParameter(ConnRoutePNames.LOCAL_ADDRESS, inetAddr);
    } else if (localAddress != null){
        requestParams.setParameter(ConnRoutePNames.LOCAL_ADDRESS, localAddress);
    } else { // reset in case was set previously
        requestParams.removeParameter(ConnRoutePNames.LOCAL_ADDRESS);
    }

    int rto = getResponseTimeout();
    if (rto > 0){
        requestParams.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, rto);
View Full Code Here

Examples of org.apache.jetspeed.om.profile.Entry.removeParameter()

        // We have to wait until we are outside the loop to remove
        // or else we throw a ConcurrentModificationException   
        if (index != -1)
        {
            entry.removeParameter(index);          
        }
    }

    /**
     * @see PortletInstance#removeAllAttributes()
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry.removeParameter()

                if (parameters != null && parameters.length > 0)
                {
                    for (int i = 0; i < parameters.length; i++)
                    {
                        String parameterName = parameters[i];
                        portletEntry.removeParameter(parameterName);
                    }

                    Registry.addEntry(Registry.PORTLET, portletEntry);
                    clearUserData(rundata);
                }
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletInfoEntry.removeParameter()

                if (parameters != null && parameters.length > 0)
                {
                    for (int i = 0; i < parameters.length; i++)
                    {
                        String parameterName = parameters[i];
                        portletEntry.removeParameter(parameterName);
                    }

                    Registry.addEntry(registry, portletEntry);
                    clearUserData(rundata);
                }
View Full Code Here

Examples of org.apache.myfaces.portlet.faces.util.QueryString.removeParameter()

    }
   
    // Now make sure the parameters are removed
    try
    {
      queryStr.removeParameter(Bridge.BACK_LINK);
      queryStr.removeParameter(Bridge.VIEW_LINK);
    }
    catch (Exception e)
    {
      ; // do nothing -- just ignore
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.