Class ServerEndpointIndexer
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.processor.EndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
- org.jboss.resteasy.reactive.server.processor.ServerEndpointIndexer
-
public class ServerEndpointIndexer extends EndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerEndpointIndexer.AbstractBuilder<B extends EndpointIndexer.Builder<ServerEndpointIndexer,B,ServerResourceMethod>>static classServerEndpointIndexer.Builderstatic interfaceServerEndpointIndexer.ConverterSupplierIndexerExtensionstatic interfaceServerEndpointIndexer.FieldInjectionIndexerExtension-
Nested classes/interfaces inherited from class org.jboss.resteasy.reactive.common.processor.EndpointIndexer
EndpointIndexer.BasicResourceClassInfo, EndpointIndexer.DeclaredTypes, EndpointIndexer.MultipartParameterIndexerExtension, EndpointIndexer.MultipartReturnTypeIndexerExtension, EndpointIndexer.ResourceMethodCallbackEntry
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerEndpointIndexer.ConverterSupplierIndexerExtensionconverterSupplierIndexerExtensionprotected EndpointInvokerFactoryendpointInvokerFactoryprotected ServerEndpointIndexer.FieldInjectionIndexerExtensionfieldInjectionHandlerprotected List<MethodScanner>methodScanners-
Fields inherited from class org.jboss.resteasy.reactive.common.processor.EndpointIndexer
additionalReaders, applicationIndex, applicationScanningResult, CDI_WRAPPER_SUFFIX, config, EMPTY_STRING_ARRAY, existingConverters, hasRuntimeConverters, index, injectableBeans, log, METHOD_CONTEXT_ANNOTATION_STORE, METHOD_CONTEXT_CUSTOM_RETURN_TYPE_KEY, METHOD_PRODUCES, primitiveTypes, SUPPORT_TEMPORAL_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServerEndpointIndexer(ServerEndpointIndexer.AbstractBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddReaderForType(AdditionalReaders additionalReaders, org.jboss.jandex.Type paramType)protected voidaddWriterForType(AdditionalWriters additionalWriters, org.jboss.jandex.Type paramType)protected ServerIndexedParametercreateIndexedParam()protected org.jboss.resteasy.reactive.common.model.MethodParametercreateMethodParameter(org.jboss.jandex.ClassInfo currentClassInfo, org.jboss.jandex.ClassInfo actualEndpointInfo, boolean encoded, org.jboss.jandex.Type paramType, ServerIndexedParameter parameterResult, String name, String defaultValue, org.jboss.resteasy.reactive.common.model.ParameterType type, String elementType, boolean single, String signature, Set<String> fileFormNames)protected ServerResourceMethodcreateResourceMethod(org.jboss.jandex.MethodInfo methodInfo, org.jboss.jandex.ClassInfo actualEndpointClass, Map<String,Object> methodContext)protected booleandoesMethodHaveBlockingSignature(org.jboss.jandex.MethodInfo info)protected voidhandleAdditionalMethodProcessing(ServerResourceMethod method, org.jboss.jandex.ClassInfo currentClassInfo, org.jboss.jandex.MethodInfo info, AnnotationStore annotationStore)protected voidhandleArrayParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)protected booleanhandleBeanParam(org.jboss.jandex.ClassInfo actualEndpointInfo, org.jboss.jandex.Type paramType, org.jboss.resteasy.reactive.common.model.MethodParameter[] methodParameters, int i, Set<String> fileFormNames)protected booleanhandleCustomParameter(Map<org.jboss.jandex.DotName,org.jboss.jandex.AnnotationInstance> anns, ServerIndexedParameter builder, org.jboss.jandex.Type paramType, boolean field, Map<String,Object> methodContext)protected voidhandleListParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)protected voidhandleOptionalParam(Map<String,String> existingConverters, Map<org.jboss.jandex.DotName,org.jboss.jandex.AnnotationInstance> parameterAnnotations, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType, String genericElementType, org.jboss.jandex.MethodInfo currentMethodInfo)protected voidhandleOtherParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)protected voidhandlePathSegmentParam(ServerIndexedParameter builder)protected voidhandleSetParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)protected voidhandleSortedSetParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)protected voidhandleTemporalParam(ServerIndexedParameter builder, org.jboss.jandex.DotName paramType, Map<org.jboss.jandex.DotName,org.jboss.jandex.AnnotationInstance> parameterAnnotations, org.jboss.jandex.MethodInfo currentMethodInfo)protected StringhandleTrailingSlash(String path)protected org.jboss.resteasy.reactive.common.model.InjectableBeanscanInjectableBean(org.jboss.jandex.ClassInfo currentClassInfo, org.jboss.jandex.ClassInfo actualEndpointInfo, Map<String,String> existingConverters, AdditionalReaders additionalReaders, Map<String,org.jboss.resteasy.reactive.common.model.InjectableBean> injectableBeans, boolean hasRuntimeConverters)-
Methods inherited from class org.jboss.resteasy.reactive.common.processor.EndpointIndexer
additionalRegisterClassForReflectionCheck, applyAdditionalDefaults, collectClassEndpoints, createEndpoints, createEndpoints, extractParameterInfo, extractProducesConsumesValues, getAnnotationStore, getDeclaredTypes, getPartMime, getSeparator, handleClientSubResource, nameBindingNames, nameBindingNames, setupApplyDefaults, skipParameter, toClassName
-
-
-
-
Field Detail
-
endpointInvokerFactory
protected final EndpointInvokerFactory endpointInvokerFactory
-
methodScanners
protected final List<MethodScanner> methodScanners
-
fieldInjectionHandler
protected final ServerEndpointIndexer.FieldInjectionIndexerExtension fieldInjectionHandler
-
converterSupplierIndexerExtension
protected final ServerEndpointIndexer.ConverterSupplierIndexerExtension converterSupplierIndexerExtension
-
-
Constructor Detail
-
ServerEndpointIndexer
protected ServerEndpointIndexer(ServerEndpointIndexer.AbstractBuilder builder)
-
-
Method Detail
-
addWriterForType
protected void addWriterForType(AdditionalWriters additionalWriters, org.jboss.jandex.Type paramType)
- Specified by:
addWriterForTypein classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
addReaderForType
protected void addReaderForType(AdditionalReaders additionalReaders, org.jboss.jandex.Type paramType)
- Specified by:
addReaderForTypein classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
createIndexedParam
protected ServerIndexedParameter createIndexedParam()
- Specified by:
createIndexedParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleCustomParameter
protected boolean handleCustomParameter(Map<org.jboss.jandex.DotName,org.jboss.jandex.AnnotationInstance> anns, ServerIndexedParameter builder, org.jboss.jandex.Type paramType, boolean field, Map<String,Object> methodContext)
- Overrides:
handleCustomParameterin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
createResourceMethod
protected ServerResourceMethod createResourceMethod(org.jboss.jandex.MethodInfo methodInfo, org.jboss.jandex.ClassInfo actualEndpointClass, Map<String,Object> methodContext)
- Specified by:
createResourceMethodin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleBeanParam
protected boolean handleBeanParam(org.jboss.jandex.ClassInfo actualEndpointInfo, org.jboss.jandex.Type paramType, org.jboss.resteasy.reactive.common.model.MethodParameter[] methodParameters, int i, Set<String> fileFormNames)- Specified by:
handleBeanParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
doesMethodHaveBlockingSignature
protected boolean doesMethodHaveBlockingSignature(org.jboss.jandex.MethodInfo info)
-
handleAdditionalMethodProcessing
protected void handleAdditionalMethodProcessing(ServerResourceMethod method, org.jboss.jandex.ClassInfo currentClassInfo, org.jboss.jandex.MethodInfo info, AnnotationStore annotationStore)
-
scanInjectableBean
protected org.jboss.resteasy.reactive.common.model.InjectableBean scanInjectableBean(org.jboss.jandex.ClassInfo currentClassInfo, org.jboss.jandex.ClassInfo actualEndpointInfo, Map<String,String> existingConverters, AdditionalReaders additionalReaders, Map<String,org.jboss.resteasy.reactive.common.model.InjectableBean> injectableBeans, boolean hasRuntimeConverters)- Specified by:
scanInjectableBeanin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
createMethodParameter
protected org.jboss.resteasy.reactive.common.model.MethodParameter createMethodParameter(org.jboss.jandex.ClassInfo currentClassInfo, org.jboss.jandex.ClassInfo actualEndpointInfo, boolean encoded, org.jboss.jandex.Type paramType, ServerIndexedParameter parameterResult, String name, String defaultValue, org.jboss.resteasy.reactive.common.model.ParameterType type, String elementType, boolean single, String signature, Set<String> fileFormNames)- Specified by:
createMethodParameterin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleOtherParam
protected void handleOtherParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)
- Overrides:
handleOtherParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleSortedSetParam
protected void handleSortedSetParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)
- Overrides:
handleSortedSetParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleOptionalParam
protected void handleOptionalParam(Map<String,String> existingConverters, Map<org.jboss.jandex.DotName,org.jboss.jandex.AnnotationInstance> parameterAnnotations, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType, String genericElementType, org.jboss.jandex.MethodInfo currentMethodInfo)
- Overrides:
handleOptionalParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleSetParam
protected void handleSetParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)
- Overrides:
handleSetParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleListParam
protected void handleListParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)
- Overrides:
handleListParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleArrayParam
protected void handleArrayParam(Map<String,String> existingConverters, String errorLocation, boolean hasRuntimeConverters, ServerIndexedParameter builder, String elementType)
- Overrides:
handleArrayParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handlePathSegmentParam
protected void handlePathSegmentParam(ServerIndexedParameter builder)
- Overrides:
handlePathSegmentParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleTrailingSlash
protected String handleTrailingSlash(String path)
- Overrides:
handleTrailingSlashin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
handleTemporalParam
protected void handleTemporalParam(ServerIndexedParameter builder, org.jboss.jandex.DotName paramType, Map<org.jboss.jandex.DotName,org.jboss.jandex.AnnotationInstance> parameterAnnotations, org.jboss.jandex.MethodInfo currentMethodInfo)
- Overrides:
handleTemporalParamin classEndpointIndexer<ServerEndpointIndexer,ServerIndexedParameter,ServerResourceMethod>
-
-