Examples of URLFragment


Examples of com.google.api.explorer.client.routing.URLFragment

    builder.addRootNavigationItem(RootNavigationItem.ALL_VERSIONS)
        .addService(service.getName(), service.getVersion())
        .addMethodName(method.getId());

    // Calculate the params from the path template and url.
    URLFragment parsed = URLFragment.parseFragment(url);
    Multimap<String, String> params = HashMultimap.create();
    String pathTemplate = method.getPath();
    if (pathTemplate.contains("{")) {
      String urlPath = parsed.getPath().replaceFirst(Config.getBaseUrl() + service.basePath(), "");
      String[] templateSections = pathTemplate.split("/");
      String[] urlSections = urlPath.split("/");
      for (int i = 0; i < templateSections.length; i++) {
        if (templateSections[i].contains("{")) {
          String paramName = templateSections[i].substring(1, templateSections[i].length() - 1);
          params.put(paramName, urlSections[i]);
        }
      }
    }

    // Apply the params.
    String fullUrl = builder.addQueryParams(params).toString();

    // Check if the url had query parameters to add.
    if (!parsed.getQueryString().isEmpty()) {
      fullUrl = fullUrl + parsed.getQueryString();
    }

    return fullUrl;
  }
View Full Code Here

Examples of org.applause.lang.applauseDsl.UrlFragment

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetHost(UrlFragment newHost, NotificationChain msgs)
  {
    UrlFragment oldHost = host;
    host = newHost;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.ABSOLUTE_RESTURL__HOST, oldHost, newHost);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.applause.lang.applauseDsl.UrlFragment

@SuppressWarnings("all")
public class RESTURLExtensions {
  protected String _value(final AbsoluteRESTURL it) {
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("http://");
    UrlFragment _host = it.getHost();
    String _value = this.value(_host);
    _builder.append(_value, "");
    String _xifexpression = null;
    int _port = it.getPort();
    boolean _notEquals = (_port != 0);
View Full Code Here

Examples of org.wicketstuff.urlfragment.UrlFragment

      Component prev = contents.get(CHILD_ID);
      if (prev != null && prev instanceof BasePanel) {
        ((BasePanel)prev).cleanup(target);
      }
      target.add(contents.replace(panel));
      UrlFragment uf = new UrlFragment(target);
      uf.set(f.getArea().name(), f.getType());
      panel.onMenuPanelLoad(target);
    }
    if (dev != null){
      target.add(dev);
    }
View Full Code Here

Examples of org.wicketstuff.urlfragment.UrlFragment

      Component prev = contents.get(CHILD_ID);
      if (prev != null && prev instanceof BasePanel) {
        ((BasePanel)prev).cleanup(target);
      }
      target.add(contents.replace(panel));
      UrlFragment uf = new UrlFragment(target);
      uf.set(f.getArea().name(), f.getType());
      panel.onMenuPanelLoad(target);
    }
    if (dev != null){
      target.add(dev);
    }
View Full Code Here

Examples of org.wicketstuff.urlfragment.UrlFragment

      if (prev != null && prev instanceof BasePanel) {
        ((BasePanel)prev).cleanup(target);
      }
      target.add(contents.replace(panel));
      if (updateFragment) {
        UrlFragment uf = new UrlFragment(target);
        uf.set(f.getArea().name(), f.getType());
      }
      panel.onMenuPanelLoad(target);
    }
    if (dev != null){
      target.add(dev);
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.