Package org.springframework.web.util

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


        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


          builder.scheme("https");
        }
      }

      // fragment must be stripped (rule 4)
      builder.fragment(null);

      return builder.build();
    }

View Full Code Here

        query.put(additionalInfo.getKey(), additionalInfo.getValue());
      }
    }

    if (fragment) {
      template.fragment(values.toString());
    }
    else {
      template.query(values.toString());
    }
View Full Code Here

      builder.pathSegment(pathSegment);
    }

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

    return createNewInstance(builder.query(components.getQuery()));
  }
View Full Code Here

      builder.pathSegment(pathSegment);
    }

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

    return createNewInstance(builder.query(components.getQuery()));
  }
View Full Code Here

    if (lastmod) {
      builder.queryParam("lastmod", topic.getLastModified().getTime());
    }

    if (comment!=null) {
      builder.fragment("comment-"+comment);
    }

    if (filter!=null) {
      builder.queryParam("filter", filter);
    }
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.