public class SpringMvcClientEventListener extends org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>
| Constructor and Description |
|---|
SpringMvcClientEventListener(org.apache.shenyu.register.common.config.PropertiesConfig clientConfig,
org.apache.shenyu.register.client.api.ShenyuClientRegisterRepository shenyuClientRegisterRepository)
Instantiates a new context refreshed event listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.javatuples.Sextet<java.lang.String[],java.lang.String,java.lang.String,org.apache.shenyu.common.enums.ApiHttpMethodEnum[],org.apache.shenyu.common.enums.RpcTypeEnum,java.lang.String> |
buildApiDocSextet(java.lang.reflect.Method method,
java.lang.annotation.Annotation annotation,
java.util.Map<java.lang.String,java.lang.Object> beans) |
protected java.lang.String |
buildApiPath(java.lang.reflect.Method method,
java.lang.String superPath,
ShenyuSpringMvcClient methodShenyuClient) |
protected java.lang.String |
buildApiSuperPath(java.lang.Class<?> clazz,
ShenyuSpringMvcClient beanShenyuClient) |
protected org.apache.shenyu.register.common.dto.MetaDataRegisterDTO |
buildMetaDataDTO(java.lang.Object bean,
ShenyuSpringMvcClient shenyuClient,
java.lang.String path,
java.lang.Class<?> clazz,
java.lang.reflect.Method method) |
protected org.apache.shenyu.register.common.dto.URIRegisterDTO |
buildURIRegisterDTO(org.springframework.context.ApplicationContext context,
java.util.Map<java.lang.String,java.lang.Object> beans) |
protected org.apache.shenyu.register.common.dto.ApiDocRegisterDTO.ApiExt |
customApiDocExt(org.apache.shenyu.register.common.dto.ApiDocRegisterDTO.ApiExt ext) |
protected java.lang.Class<ShenyuSpringMvcClient> |
getAnnotationType() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getBeans(org.springframework.context.ApplicationContext context) |
java.lang.String |
getPort() |
protected void |
handleMethod(java.lang.Object bean,
java.lang.Class<?> clazz,
ShenyuSpringMvcClient beanShenyuClient,
java.lang.reflect.Method method,
java.lang.String superPath) |
getAppName, getContext, getContextPath, getCorrectedClass, getHost, getIpAndPort, getMetaDataMap, getPublisher, handle, handleClass, onApplicationEvent, pathJoinpublic SpringMvcClientEventListener(org.apache.shenyu.register.common.config.PropertiesConfig clientConfig,
org.apache.shenyu.register.client.api.ShenyuClientRegisterRepository shenyuClientRegisterRepository)
clientConfig - the shenyu client configshenyuClientRegisterRepository - the shenyuClientRegisterRepositoryprotected org.javatuples.Sextet<java.lang.String[],java.lang.String,java.lang.String,org.apache.shenyu.common.enums.ApiHttpMethodEnum[],org.apache.shenyu.common.enums.RpcTypeEnum,java.lang.String> buildApiDocSextet(java.lang.reflect.Method method,
java.lang.annotation.Annotation annotation,
java.util.Map<java.lang.String,java.lang.Object> beans)
buildApiDocSextet in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected java.util.Map<java.lang.String,java.lang.Object> getBeans(org.springframework.context.ApplicationContext context)
getBeans in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected org.apache.shenyu.register.common.dto.URIRegisterDTO buildURIRegisterDTO(org.springframework.context.ApplicationContext context,
java.util.Map<java.lang.String,java.lang.Object> beans)
buildURIRegisterDTO in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected java.lang.String buildApiSuperPath(java.lang.Class<?> clazz,
@Nullable
ShenyuSpringMvcClient beanShenyuClient)
buildApiSuperPath in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected java.lang.Class<ShenyuSpringMvcClient> getAnnotationType()
getAnnotationType in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected void handleMethod(java.lang.Object bean,
java.lang.Class<?> clazz,
@Nullable
ShenyuSpringMvcClient beanShenyuClient,
java.lang.reflect.Method method,
java.lang.String superPath)
handleMethod in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected java.lang.String buildApiPath(java.lang.reflect.Method method,
java.lang.String superPath,
@NonNull
ShenyuSpringMvcClient methodShenyuClient)
buildApiPath in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected org.apache.shenyu.register.common.dto.MetaDataRegisterDTO buildMetaDataDTO(java.lang.Object bean,
@NonNull
ShenyuSpringMvcClient shenyuClient,
java.lang.String path,
java.lang.Class<?> clazz,
java.lang.reflect.Method method)
buildMetaDataDTO in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>protected org.apache.shenyu.register.common.dto.ApiDocRegisterDTO.ApiExt customApiDocExt(org.apache.shenyu.register.common.dto.ApiDocRegisterDTO.ApiExt ext)
customApiDocExt in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>public java.lang.String getPort()
getPort in class org.apache.shenyu.client.core.client.AbstractContextRefreshedEventListener<java.lang.Object,ShenyuSpringMvcClient>Copyright © 2023 The Apache Software Foundation. All rights reserved.