Class AcceptResolver
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.AcceptResolver
-
- All Implemented Interfaces:
Function<Invocation,org.springframework.http.MediaType>
public class AcceptResolver extends Object implements Function<Invocation,org.springframework.http.MediaType>
The accept resolver.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description AcceptResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.MediaType
apply(Invocation invocation)
protected org.springframework.http.MediaType
parseMediaType(String mediaType)
Parse media type.
-
-
-
Method Detail
-
apply
public org.springframework.http.MediaType apply(Invocation invocation)
- Specified by:
apply
in interfaceFunction<Invocation,org.springframework.http.MediaType>
-
parseMediaType
protected org.springframework.http.MediaType parseMediaType(String mediaType)
Parse media type.- Parameters:
mediaType
- the media type- Returns:
- the media type (can be
null
-
-