Package er.extensions.foundation

Examples of er.extensions.foundation.ERXMutableURL.addQueryParameter()


            context.generateCompleteURLs();
          }
          try {
            _url = context._directActionURL(directActionName, queryDictionary, secure, 0, false);
            ERXMutableURL u = new ERXMutableURL(_url);
            u.addQueryParameter(String.valueOf(System.currentTimeMillis()), null);
            _url = u.toExternalForm();
          } catch (MalformedURLException e) {
            throw new NSForwardException(e);
          } finally {
            if(!generatingCompleteURLs) {
View Full Code Here


      else {
        response.appendContentString("<a href = \"");
        if (_download != null && _download.booleanValueInComponent(component)) {
          try {
            ERXMutableURL attachmentMutableUrl = new ERXMutableURL(attachmentUrl);
            attachmentMutableUrl.addQueryParameter("attachment", "true");
            attachmentUrl = attachmentMutableUrl.toExternalForm();
          }
          catch (MalformedURLException e) {
            throw new RuntimeException("Failed to create attachment URL.", e);
          }
View Full Code Here

        version = null;
      }
      if (version != null) {
        try {
          ERXMutableURL url = new ERXMutableURL(resourceUrl);
          url.addQueryParameter("", version);
          resourceUrl = url.toExternalForm();
        }
        catch (MalformedURLException e) {
          ERXResourceManager.log.error("Failed to construct URL from '" + resourceUrl + "'.", e);
        }
View Full Code Here

  }

  public String clickToDebugUrl() {
    try {
      ERXMutableURL url = new ERXMutableURL(context().componentActionURL());
      url.addQueryParameter("component", "REPLACEME");
      return url.toExternalForm();
    }
    catch (MalformedURLException e) {
      System.err.println("WOLClickToOpen.clickToDebugUrl failed to generate a URL: " + e.getMessage());
      return "http://broken";
View Full Code Here

                context.generateCompleteURLs();
              }
              try {
                href = context._directActionURL(directActionName, queryDictionary, secure, 0, false);
                ERXMutableURL u = new ERXMutableURL(href);
                u.addQueryParameter(String.valueOf(System.currentTimeMillis()), null);
                href = u.toExternalForm();
              }
              catch (MalformedURLException e) {
                throw new NSForwardException(e);
              }
View Full Code Here

      }
     
      if (replaceID != null) {
        try {
          ERXMutableURL tempActionUrl = new ERXMutableURL(actionUrl);
          tempActionUrl.addQueryParameter(ERXAjaxApplication.KEY_REPLACED, "true");
          actionUrl = tempActionUrl.toExternalForm();
        }
        catch (MalformedURLException e) {
          throw NSForwardException._runtimeExceptionForThrowable(e);
        }
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.