@Component public class MediaTypeConverter extends Object implements org.springframework.shell.core.Converter<org.springframework.http.MediaType>
MediaType.TAB_COMPLETION_COUNT_PREFIX| Constructor and Description |
|---|
MediaTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.MediaType |
convertFromText(String value,
Class<?> targetType,
String optionContext) |
boolean |
getAllPossibleValues(List<org.springframework.shell.core.Completion> completions,
Class<?> targetType,
String existingData,
String optionContext,
org.springframework.shell.core.MethodTarget target) |
boolean |
supports(Class<?> type,
String optionContext) |
public boolean supports(Class<?> type, String optionContext)
supports in interface org.springframework.shell.core.Converter<org.springframework.http.MediaType>public org.springframework.http.MediaType convertFromText(String value, Class<?> targetType, String optionContext)
convertFromText in interface org.springframework.shell.core.Converter<org.springframework.http.MediaType>public boolean getAllPossibleValues(List<org.springframework.shell.core.Completion> completions, Class<?> targetType, String existingData, String optionContext, org.springframework.shell.core.MethodTarget target)
getAllPossibleValues in interface org.springframework.shell.core.Converter<org.springframework.http.MediaType>Copyright © 2021 Pivotal Software, Inc.. All rights reserved.