Package org.springframework.web.util

Examples of org.springframework.web.util.UriComponentsBuilder.query()


        String port = m.group(10);
        if (!Strings.isNullOrEmpty(port)) {
          builder.port(Integer.parseInt(port));
        }
        builder.path(m.group(11));
        builder.query(m.group(13));
        builder.fragment(m.group(15)); // we throw away the hash, but this is the group it would be if we kept it
      } else {
        // doesn't match the pattern, throw it out
        logger.warn("Parser couldn't match input: " + identifier);
        return null;
View Full Code Here


    if (fragment) {
      template.fragment(values.toString());
    }
    else {
      template.query(values.toString());
    }

    return template.build().expand(query).encode().toUriString();

  }
View Full Code Here

    String fragment = components.getFragment();
    if (StringUtils.hasText(fragment)) {
      builder.fragment(fragment);
    }

    return createNewInstance(builder.query(components.getQuery()));
  }

  /*
   * (non-Javadoc)
   * @see org.springframework.hateoas.LinkBuilder#slash(org.springframework.hateoas.Identifiable)
View Full Code Here

    String fragment = components.getFragment();
    if (StringUtils.hasText(fragment)) {
      builder.fragment(fragment);
    }

    return createNewInstance(builder.query(components.getQuery()));
  }

  /*
   * (non-Javadoc)
   * @see org.springframework.hateoas.LinkBuilder#slash(org.springframework.hateoas.Identifiable)
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.