public class RouterContext extends Object
| 构造器和说明 |
|---|
RouterContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addExceptionHandler(ExceptionHandler<?>... handlers) |
void |
addMessageConverter(MessageConverter<?>... converters) |
ExceptionHandler<?> |
getExceptionHandler(Class<?> t) |
static Type |
getGenericType(Class<?> clazz) |
<T> MessageConverter<T> |
getMessageConverter(String... mediaTypes) |
static boolean |
isCompatibleType(Class<?> expected,
Type actual) |
public <T> MessageConverter<T> getMessageConverter(String... mediaTypes)
public void addMessageConverter(MessageConverter<?>... converters)
public void addExceptionHandler(ExceptionHandler<?>... handlers)
public ExceptionHandler<?> getExceptionHandler(Class<?> t)
Copyright © 2016~2017–2019 dinstone. All rights reserved.