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 TypeMethodDescriptionbooleaninthashCode()Add one header to the HttpHeaders collection.static HopCreates a newHopfor the given relation name.toString()withHeaders(HttpHeaders headers) Create a newHopby 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 newHopby copying all the attributes and replacing the parameters.
-
Method Details
-
rel
Creates a newHopfor 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 newHopby copying all the attributes and replacing the parameters.- Parameters:
parameters-- Returns:
-
withHeaders
Create a newHopby 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
-