Examples of removeParameter()


Examples of com.ocpsoft.pretty.faces.url.QueryString.removeParameter()

          */
         String mappingId = null;
         if (strippedUrl.contains("?")) {
            queryString.addParameters(strippedUrl);
            mappingId = queryString.getParameter(REWRITE_MAPPING_ID_KEY);
            queryString.removeParameter(REWRITE_MAPPING_ID_KEY);
         }

         if (mappingId != null)
         {
            matches.add(prettyConfig.getMappingById(mappingId));
View Full Code Here

Examples of com.tll.model.InterfaceOption.removeParameter()

    removedOption = o;

    final Iterator<InterfaceOptionParameterDefinition> itrp = o2.getParameters().iterator();
    final InterfaceOptionParameterDefinition p = itrp.next();
    final InterfaceOptionParameterDefinition p2 = itrp.next();
    o2.removeParameter(p);
    removedParam = p;
    p2.setDescription("updated");
  }

  @Override
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL.removeParameter()

            logger.debug("URL before is "
                         + rootPageURL.getExternalForm());
        }

        if (requestValue == null) {
            rootPageURL.removeParameter(URLConstants.FRAGMENTATION_PARAMETER);
        } else {
            rootPageURL.setParameterValue(URLConstants.FRAGMENTATION_PARAMETER,
                                          requestValue);
        }
View Full Code Here

Examples of de.innovationgate.utils.URLBuilder.removeParameter()

                               
            // create ajaxInfo
            AjaxInfo ajaxInfo = new AjaxInfo(uniquePortletID);
            try {
        URLBuilder builder = new URLBuilder(getTMLContext().getrequest());
        builder.removeParameter("$action");
        java.net.URL url = builder.rebuild();
        ajaxInfo.setQueryString(url.getQuery());
      } catch (Exception e1) {
        getTMLContext().addwarning("Unable to build request querystring for ajax environment.");
      }
View Full Code Here

Examples of de.iritgo.aktera.model.ModelRequest.removeParameter()

      Model model = (Model) req.getService(Model.ROLE, modelName);

      ModelRequest mreq = (ModelRequest) req.getService(ModelRequest.ROLE, "default");

      mreq.copyFrom(req);
      mreq.removeParameter("listSearch");

      for (Iterator i = req.getParameters().keySet().iterator(); i.hasNext();)
      {
        String key = (String) i.next();
View Full Code Here

Examples of gov.nist.javax.sip.address.SipUri.removeParameter()

        }
        // This avoids the concurrent modification exception.
        for (Iterator it = parameterNames.iterator(); it.hasNext();) {
          String name = (String) it.next();
          String val = sipUri.getParameter(name);
          sipUri.removeParameter(name);
          contact.setParameter(name,val);
        }
      }
      retval.add(contact);
      this.lexer.SPorHT();
View Full Code Here

Examples of javax.servlet.sip.Address.removeParameter()

    Address orig = new NameAddr("\"Hello World\" <sip:foo@bar.com;transport=tcp>;tag=12345");
    Address readOnly = new ReadOnlyAddress((Address) orig.clone());
   
    assertEquals(orig, readOnly);
    try { readOnly.setParameter("foo", "bar"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeParameter("tag"); fail();} catch (IllegalStateException e) {}
    try { readOnly.setDisplayName(""); fail();} catch (IllegalStateException e) {}
    try { ((SipURI) readOnly.getURI()).removeParameter("transport"); fail();} catch (IllegalStateException e) {}
    try { ((SipURI) readOnly.getURI()).setUser("foo2"); fail();} catch (IllegalStateException e) {}
   
    assertEquals(orig, readOnly);
View Full Code Here

Examples of javax.servlet.sip.Parameterable.removeParameter()

    Parameterable orig = new ParameterableImpl("\"Hello World\" <sip:foo@bar.com;transport=tcp>;tag=12345");
    Parameterable readOnly = new ReadOnlyParameterable((Parameterable) orig.clone());
   
    assertEquals(orig, readOnly);
    try { readOnly.setParameter("foo", "bar"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeParameter("tag"); fail();} catch (IllegalStateException e) {}
    try { readOnly.setValue(""); fail();} catch (IllegalStateException e) {}
   
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
    assertEquals(orig.toString(), readOnly.toString());
View Full Code Here

Examples of javax.servlet.sip.SipURI.removeParameter()

    SipURI orig = new SipURIImpl("sip:foo@bar.com;transport=tcp?to=sip:bob%40biloxi.com");
    SipURI readOnly = new ReadOnlySipURI((SipURI) orig.clone());
   
    assertEquals(orig, readOnly);
    try { readOnly.setParameter("foo", "bar"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeParameter("transport"); fail();} catch (IllegalStateException e) {} 
    try { readOnly.setHeader("subject", "toto"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeHeader("to"); fail();} catch (IllegalStateException e) {}
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
    assertEquals(orig.toString(), readOnly.toString());
View Full Code Here

Examples of javax.servlet.sip.SipURI.removeParameter()

    try { uri.setLrParam(true); fail(); } catch (IllegalStateException e) {}
    try { uri.setMAddrParam("bad"); fail(); } catch (IllegalStateException e) {}
    try { uri.setMethodParam("Bad"); fail(); } catch (IllegalStateException e) {}
    try { uri.setTTLParam(2); fail(); } catch (IllegalStateException e) {}
    try { uri.setParameter("lr", ""); fail(); } catch (IllegalStateException e) {}
    try { uri.removeParameter("Maddr"); fail(); } catch (IllegalStateException e) {}
    uri.setParameter("transport", "UDP");
    assertEquals("UDP", uri.getParameter("transport"));
    assertEquals("Bob <sip:bob@127.0.0.1:5060;transport=UDP>;isfocus", contact.toString());
   
    // Full read-only on committed
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.