Class PageableSpringEncoder
java.lang.Object
org.springframework.cloud.openfeign.support.PageableSpringEncoder
- All Implemented Interfaces:
feign.codec.Encoder
Provides support for encoding spring Pageable via composition.
- Author:
- Pascal Büttiker, Yanming Zhou
-
Nested Class Summary
Nested classes/interfaces inherited from interface feign.codec.Encoder
feign.codec.Encoder.Default
-
Field Summary
Fields inherited from interface feign.codec.Encoder
MAP_STRING_WILDCARD
-
Constructor Summary
ConstructorDescriptionPageableSpringEncoder
(feign.codec.Encoder delegate) Creates a new PageableSpringEncoder with the given delegate for fallback. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setPageParameter
(String pageParameter) void
setSizeParameter
(String sizeParameter) void
setSortParameter
(String sortParameter) protected boolean
-
Constructor Details
-
PageableSpringEncoder
public PageableSpringEncoder(feign.codec.Encoder delegate) Creates a new PageableSpringEncoder with the given delegate for fallback. If no delegate is provided and this encoder cant handle the request, an EncodeException is thrown.- Parameters:
delegate
- The optional delegate.
-
-
Method Details