Class Hop
java.lang.Object
org.springframework.hateoas.client.Hop
Container for customizations to a single traverson "hop"
- Since:
- 0.18
- Author:
- Greg Turnquist, Oliver Gierke, Manish Misra
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
Add one header to the HttpHeaders collection.static Hop
Creates a newHop
for the given relation name.toString()
withHeaders
(HttpHeaders headers) Create a newHop
by copying all the attributes and replacing the headers.withParameter
(String name, Object value) Add one parameter to the map of parameters.withParameters
(Map<String, Object> parameters) Create a newHop
by copying all the attributes and replacing the parameters.
-
Method Details
-
rel
Creates a newHop
for the given relation name.- Parameters:
rel
- must not be null or empty.- Returns:
-
withParameter
Add one parameter to the map of parameters.- Parameters:
name
- must not be null or empty.value
- can be null.- Returns:
-
withParameters
Create a newHop
by copying all the attributes and replacing the parameters.- Parameters:
parameters
-- Returns:
-
withHeaders
Create a newHop
by copying all the attributes and replacing the headers.- Parameters:
headers
-- Returns:
-
header
Add one header to the HttpHeaders collection.- Parameters:
headerName
- must not be null or empty.headerValue
- can be null.- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-