org.springframework.web.util.HierarchicalUriComponents.PathComponent Java Examples
The following examples show how to use
org.springframework.web.util.HierarchicalUriComponents.PathComponent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UriComponentsBuilder.java From spring-analysis-note with MIT License | 6 votes |
@Override public PathComponent build() { int size = this.builders.size(); List<PathComponent> components = new ArrayList<>(size); for (PathComponentBuilder componentBuilder : this.builders) { PathComponent pathComponent = componentBuilder.build(); if (pathComponent != null) { components.add(pathComponent); } } if (components.isEmpty()) { return HierarchicalUriComponents.NULL_PATH_COMPONENT; } if (components.size() == 1) { return components.get(0); } return new HierarchicalUriComponents.PathComponentComposite(components); }
Example #2
Source File: UriComponentsBuilder.java From java-technology-stack with MIT License | 6 votes |
@Override public PathComponent build() { int size = this.builders.size(); List<PathComponent> components = new ArrayList<>(size); for (PathComponentBuilder componentBuilder : this.builders) { PathComponent pathComponent = componentBuilder.build(); if (pathComponent != null) { components.add(pathComponent); } } if (components.isEmpty()) { return HierarchicalUriComponents.NULL_PATH_COMPONENT; } if (components.size() == 1) { return components.get(0); } return new HierarchicalUriComponents.PathComponentComposite(components); }
Example #3
Source File: UriComponentsBuilder.java From lams with GNU General Public License v2.0 | 6 votes |
@Override public PathComponent build() { int size = this.builders.size(); List<PathComponent> components = new ArrayList<PathComponent>(size); for (PathComponentBuilder componentBuilder : this.builders) { PathComponent pathComponent = componentBuilder.build(); if (pathComponent != null) { components.add(pathComponent); } } if (components.isEmpty()) { return HierarchicalUriComponents.NULL_PATH_COMPONENT; } if (components.size() == 1) { return components.get(0); } return new HierarchicalUriComponents.PathComponentComposite(components); }
Example #4
Source File: UriComponentsBuilder.java From spring4-understanding with Apache License 2.0 | 6 votes |
@Override public PathComponent build() { int size = this.builders.size(); List<PathComponent> components = new ArrayList<PathComponent>(size); for (PathComponentBuilder componentBuilder : this.builders) { PathComponent pathComponent = componentBuilder.build(); if (pathComponent != null) { components.add(pathComponent); } } if (components.isEmpty()) { return HierarchicalUriComponents.NULL_PATH_COMPONENT; } if (components.size() == 1) { return components.get(0); } return new HierarchicalUriComponents.PathComponentComposite(components); }
Example #5
Source File: UriComponentsBuilder.java From spring-analysis-note with MIT License | 4 votes |
@Nullable PathComponent build();
Example #6
Source File: UriComponentsBuilder.java From spring-analysis-note with MIT License | 4 votes |
@Override public PathComponent build() { return (this.pathSegments.isEmpty() ? null : new HierarchicalUriComponents.PathSegmentComponent(this.pathSegments)); }
Example #7
Source File: UriComponentsBuilder.java From java-technology-stack with MIT License | 4 votes |
@Nullable PathComponent build();
Example #8
Source File: UriComponentsBuilder.java From java-technology-stack with MIT License | 4 votes |
@Override public PathComponent build() { return (this.pathSegments.isEmpty() ? null : new HierarchicalUriComponents.PathSegmentComponent(this.pathSegments)); }
Example #9
Source File: UriComponentsBuilder.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public PathComponent build() { return (this.pathSegments.isEmpty() ? null : new HierarchicalUriComponents.PathSegmentComponent(this.pathSegments)); }
Example #10
Source File: UriComponentsBuilder.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public PathComponent build() { return (this.pathSegments.isEmpty() ? null : new HierarchicalUriComponents.PathSegmentComponent(this.pathSegments)); }
Example #11
Source File: UriComponentsBuilder.java From lams with GNU General Public License v2.0 | votes |
PathComponent build();
Example #12
Source File: UriComponentsBuilder.java From spring4-understanding with Apache License 2.0 | votes |
PathComponent build();