Examples of removeParameter()


Examples of org.ocpsoft.rewrite.servlet.util.QueryStringBuilder.removeParameter()

         QueryStringBuilder query = QueryStringBuilder.createNew();
         if (outboundURL.contains("?"))
         {
            query.addParameters(outboundURL);
            for (String string : parameters) {
               List<String> values = query.removeParameter(string);
               if (values.size() > 1)
               {
                  query.addParameter(string, values.subList(1, values.size()).toArray(new String[] {}));
               }
            }
View Full Code Here

Examples of org.ocpsoft.rewrite.servlet.util.QueryStringBuilder.removeParameter()

            String decoded = encodingStrategy.decode(token);

            if (checksumStrategy.checksumValid(decoded))
            {
               decoded = checksumStrategy.removeChecksum(decoded);
               query.removeParameter(tokenName);
               QueryStringBuilder queryParams = QueryStringBuilder.createFromEncoded(decoded);
               RewriteWrappedRequest request = RewriteWrappedRequest.getCurrentInstance(in.getRequest());
               for (Entry<String, List<String>> param : queryParams.getParameterMap().entrySet()) {
                  for (String value : param.getValue()) {
                     Maps.addArrayValue(request.getModifiableParameters(), param.getKey(), value);
View Full Code Here

Examples of org.onesocialweb.gwt.client.util.OSWUrlBuilder.removeParameter()

        // and reload in the PreferencesApplication
        if (value != null && value.length() > 0) {
         
          if (value.equals("default")) {
            OSWUrlBuilder urlBuilder = new OSWUrlBuilder();
            urlBuilder.removeParameter("locale");
            Window.Location.replace(urlBuilder.buildString());
          } else {
            OSWUrlBuilder urlBuilder = new OSWUrlBuilder();
            urlBuilder.setParameter("locale", value);
            Window.Location.replace(urlBuilder.buildString());
View Full Code Here

Examples of org.openengsb.core.api.model.QueryRequest.removeParameter()

        assertThat(db.query(request).size(), is(2));
        request.addParameter("Cow", "Steak");
        assertThat(db.query(request).size(), is(3));
        request.addParameter("Animal", "Dog");
        assertThat(db.query(request).size(), is(4));
        request.removeParameter("Cow");
        assertThat(db.query(request).size(), is(3));
        request.addParameter("Cow", "Milk").addParameter("House", "Garden");
        assertThat(db.query(request).size(), is(5));
    }
View Full Code Here

Examples of org.sbml.jsbml.Model.removeParameter()

    SBMLDocument doc = new SBMLDocument(2, 2);
    doc.addTreeNodeChangeListener(this);
    Model model = doc.createModel("test_model");
    Parameter p1 = model.createParameter("p1");
    p1.setId("p2");
    model.removeParameter(p1);

    Compartment c = model.createCompartment("c");
    c.setSize(4.3);
    c.setSBOTerm(SBO.getPhysicalCompartment());
View Full Code Here

Examples of org.springframework.mock.web.MockHttpServletRequest.removeParameter()

    values = ServletRequestUtils.getRequiredLongParameters(request, "param2");
    assertEquals(2, values.length);
    assertEquals(1, values[0]);
    assertEquals(2, values[1]);

    request.removeParameter("param2");
    try {
      ServletRequestUtils.getRequiredLongParameters(request, "param2");
      fail("Should have thrown ServletRequestBindingException");
    }
    catch (ServletRequestBindingException ex) {
View Full Code Here

Examples of org.springframework.mock.web.test.MockHttpServletRequest.removeParameter()

    values = ServletRequestUtils.getRequiredLongParameters(request, "param2");
    assertEquals(2, values.length);
    assertEquals(1, values[0]);
    assertEquals(2, values[1]);

    request.removeParameter("param2");
    try {
      ServletRequestUtils.getRequiredLongParameters(request, "param2");
      fail("Should have thrown ServletRequestBindingException");
    }
    catch (ServletRequestBindingException ex) {
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.