org.springframework.web.util
Class UriComponents.PathSegmentComponent

java.lang.Object
  extended by org.springframework.web.util.UriComponents.PathSegmentComponent
All Implemented Interfaces:
UriComponents.PathComponent
Enclosing class:
UriComponents

static final class UriComponents.PathSegmentComponent
extends java.lang.Object
implements UriComponents.PathComponent

Represents a path backed by a string list (i.e. path segments).


Field Summary
private  java.util.List<java.lang.String> pathSegments
           
 
Constructor Summary
UriComponents.PathSegmentComponent(java.util.List<java.lang.String> pathSegments)
           
 
Method Summary
 UriComponents.PathComponent encode(java.lang.String encoding)
           
 boolean equals(java.lang.Object o)
           
 UriComponents.PathComponent expand(UriComponents.UriTemplateVariables uriVariables)
           
 java.lang.String getPath()
           
 java.util.List<java.lang.String> getPathSegments()
           
 int hashCode()
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pathSegments

private final java.util.List<java.lang.String> pathSegments
Constructor Detail

UriComponents.PathSegmentComponent

UriComponents.PathSegmentComponent(java.util.List<java.lang.String> pathSegments)
Method Detail

getPath

public java.lang.String getPath()
Specified by:
getPath in interface UriComponents.PathComponent

getPathSegments

public java.util.List<java.lang.String> getPathSegments()
Specified by:
getPathSegments in interface UriComponents.PathComponent

encode

public UriComponents.PathComponent encode(java.lang.String encoding)
                                   throws java.io.UnsupportedEncodingException
Specified by:
encode in interface UriComponents.PathComponent
Throws:
java.io.UnsupportedEncodingException

verify

public void verify()
Specified by:
verify in interface UriComponents.PathComponent

expand

public UriComponents.PathComponent expand(UriComponents.UriTemplateVariables uriVariables)
Specified by:
expand in interface UriComponents.PathComponent

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object