A B C D E F G H I M N O P R S T U V W Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractClientMessage - Class in dev.hilla.push.messages.toclient
- AbstractClientMessage() - Constructor for class dev.hilla.push.messages.toclient.AbstractClientMessage
- AbstractClientMessage(String) - Constructor for class dev.hilla.push.messages.toclient.AbstractClientMessage
- AbstractServerMessage - Class in dev.hilla.push.messages.fromclient
- AbstractServerMessage() - Constructor for class dev.hilla.push.messages.fromclient.AbstractServerMessage
- ACCESS_DENIED_MSG - Static variable in class dev.hilla.auth.EndpointAccessChecker
- ACCESS_DENIED_MSG_DEV_MODE - Static variable in class dev.hilla.auth.EndpointAccessChecker
- accessAnnotationChecker() - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers a default
AccessAnnotationCheckerbean instance. - accessChecker(AccessAnnotationChecker) - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers a default
EndpointAccessCheckerbean instance. - addHandlebarHelpers(Handlebars) - Method in class dev.hilla.generator.typescript.CodeGenerator
- addImport(CodegenModel, String) - Method in class dev.hilla.generator.typescript.CodeGenerator
- addSourcePath(Path) - Method in class dev.hilla.generator.OpenAPIObjectGenerator
-
Adds the source path to the generator to process.
- apiFileFolder() - Method in class dev.hilla.generator.typescript.CodeGenerator
-
Location to write api files.
- APPLICATION_API_VERSION - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- APPLICATION_TITLE - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- AuthenticationUtil - Class in dev.hilla
-
Helpers for authentication related tasks.
- AuthenticationUtil() - Constructor for class dev.hilla.AuthenticationUtil
B
- ByteArrayModule - Class in dev.hilla
-
A Jackson 2 module to allow for the registration of a custom serializer and deserializer for byte[].
- ByteArrayModule() - Constructor for class dev.hilla.ByteArrayModule
C
- capitalize(String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Capitalizes the string.
- check(Method, Principal, Function<String, Boolean>) - Method in class dev.hilla.auth.EndpointAccessChecker
-
Check that the endpoint is accessible for the current user.
- check(Method, HttpServletRequest) - Method in class dev.hilla.auth.EndpointAccessChecker
-
Check that the endpoint is accessible for the current user.
- check(String) - Method in class dev.hilla.EndpointNameChecker
-
Validates the Vaadin endpoint name given.
- checkValueForAnnotatedElement(Object, AnnotatedElement, boolean) - Method in class dev.hilla.ExplicitNullableTypeChecker
-
Validates the given value for the given expected method return value type.
- ClientAPIGenerator - Class in dev.hilla.generator
-
Generates the Vaadin connect-client file, based on the application properties, if provided.
- ClientAPIGenerator(Path, Properties) - Constructor for class dev.hilla.generator.ClientAPIGenerator
-
Creates the generator, getting the data needed for the generation out of the application properties.
- ClientMessageComplete - Class in dev.hilla.push.messages.toclient
- ClientMessageComplete() - Constructor for class dev.hilla.push.messages.toclient.ClientMessageComplete
- ClientMessageComplete(String) - Constructor for class dev.hilla.push.messages.toclient.ClientMessageComplete
- ClientMessageError - Class in dev.hilla.push.messages.toclient
- ClientMessageError() - Constructor for class dev.hilla.push.messages.toclient.ClientMessageError
- ClientMessageError(String, String) - Constructor for class dev.hilla.push.messages.toclient.ClientMessageError
- ClientMessageUpdate - Class in dev.hilla.push.messages.toclient
- ClientMessageUpdate() - Constructor for class dev.hilla.push.messages.toclient.ClientMessageUpdate
- ClientMessageUpdate(String, Object) - Constructor for class dev.hilla.push.messages.toclient.ClientMessageUpdate
- CodeGenerator - Class in dev.hilla.generator.typescript
-
Vaadin JavaScript generator implementation for swagger-codegen.
- CodeGenerator() - Constructor for class dev.hilla.generator.typescript.CodeGenerator
-
Create vaadin ts codegen instance.
- compare(String, String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Compares two strings lexicographically.
- ConditionalOnFeatureFlag - Annotation Type in dev.hilla
-
A condition for registering components only when a given feature flag is enabled.
- CONNECT_CLIENT_IMPORT_PATH - Static variable in class dev.hilla.generator.ClientAPIGenerator
- CONNECT_CLIENT_NAME - Static variable in class dev.hilla.generator.ClientAPIGenerator
- CONSTRAINT_ANNOTATIONS - Static variable in class dev.hilla.generator.OpenAPIObjectGenerator
- contains(String, String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Checks if the string s contains string p with an additional check for them to not be blank.
- createTaskGenerateEndpoint(File, File, File, File) - Method in class dev.hilla.frontend.EndpointGeneratorTaskFactoryImpl
- createTaskGenerateOpenAPI(File, File, ClassLoader, File) - Method in class dev.hilla.frontend.EndpointGeneratorTaskFactoryImpl
- csrfChecker(ServletContext) - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers a default
CsrfCheckerbean instance. - CsrfChecker - Class in dev.hilla.auth
-
Handles checking of a CSRF token in endpoint requests.
- CsrfChecker(ServletContext) - Constructor for class dev.hilla.auth.CsrfChecker
-
Creates a new csrf checker for the given context.
- CsrfIndexHtmlRequestListener - Class in dev.hilla.auth
-
An index HTML request listener that generates and sends a token for Cross-Site Request Forgery protection (Double Submit Cookie pattern) of endpoints.
- CsrfIndexHtmlRequestListener() - Constructor for class dev.hilla.auth.CsrfIndexHtmlRequestListener
- CsrfServiceInitListener - Class in dev.hilla.startup
-
A listener that creates and registers a
CsrfIndexHtmlRequestListener. - CsrfServiceInitListener() - Constructor for class dev.hilla.startup.CsrfServiceInitListener
- CUSTOM_CONNECT_CLIENT_NAME - Static variable in class dev.hilla.generator.ClientAPIGenerator
D
- DEFAULT_APPLICATION_API_VERSION - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- DEFAULT_APPLICATION_TITLE - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- DEFAULT_PREFIX - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- DEFAULT_SERVER - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- DEFAULT_SERVER_DESCRIPTION - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- dev.hilla - package dev.hilla
- dev.hilla.auth - package dev.hilla.auth
- dev.hilla.endpointransfermapper - package dev.hilla.endpointransfermapper
- dev.hilla.exception - package dev.hilla.exception
- dev.hilla.frontend - package dev.hilla.frontend
- dev.hilla.generator - package dev.hilla.generator
- dev.hilla.generator.typescript - package dev.hilla.generator.typescript
- dev.hilla.mappedtypes - package dev.hilla.mappedtypes
- dev.hilla.push - package dev.hilla.push
- dev.hilla.push.messages.fromclient - package dev.hilla.push.messages.fromclient
- dev.hilla.push.messages.toclient - package dev.hilla.push.messages.toclient
- dev.hilla.startup - package dev.hilla.startup
E
- ECMA_SCRIPT_RESERVED_WORDS - Static variable in class dev.hilla.EndpointNameChecker
-
Set of reserved words in ECMAScript specification.
- Endpoint - Annotation Type in dev.hilla
-
Annotation to mark the endpoints to be processed by
EndpointControllerclass. - EndpointAccessChecker - Class in dev.hilla.auth
-
Component used for checking role-based ACL in Vaadin Endpoints.
- EndpointAccessChecker(AccessAnnotationChecker) - Constructor for class dev.hilla.auth.EndpointAccessChecker
-
Creates a new instance.
- EndpointAccessDeniedException(String) - Constructor for exception dev.hilla.EndpointInvocationException.EndpointAccessDeniedException
-
Creates a new instance.
- EndpointBadRequestException(String) - Constructor for exception dev.hilla.EndpointInvocationException.EndpointBadRequestException
-
Creates a new instance.
- EndpointController - Class in dev.hilla
-
The controller that is responsible for processing Vaadin endpoint requests.
- EndpointController(ApplicationContext, EndpointRegistry, EndpointInvoker, CsrfChecker) - Constructor for class dev.hilla.EndpointController
-
A constructor used to initialize the controller.
- EndpointControllerConfiguration - Class in dev.hilla
-
A configuration class for customizing the
EndpointControllerclass. - EndpointControllerConfiguration(EndpointProperties) - Constructor for class dev.hilla.EndpointControllerConfiguration
-
Initializes the endpoint configuration.
- EndpointException - Exception in dev.hilla.exception
-
An exception that is intended to be thrown by any Vaadin endpoint method to propagate exception details to the client side.
- EndpointException(String) - Constructor for exception dev.hilla.exception.EndpointException
-
Creates an exception which information is propagated to the client since, if thrown from a Vaadin endpoint method.
- EndpointException(String, Object) - Constructor for exception dev.hilla.exception.EndpointException
-
Creates an exception which information is propagated to the client since, if thrown from a Vaadin endpoint method.
- EndpointException(String, Throwable) - Constructor for exception dev.hilla.exception.EndpointException
-
Creates an exception which information is propagated to the client since, if thrown from a Vaadin endpoint method.
- EndpointException(String, Throwable, Object) - Constructor for exception dev.hilla.exception.EndpointException
-
Creates an exception which information is propagated to the client since, if thrown from a Vaadin endpoint method.
- EndpointException(Throwable) - Constructor for exception dev.hilla.exception.EndpointException
-
Creates an exception which information is propagated to the client since, if thrown from a Vaadin endpoint method.
- EndpointExposed - Annotation Type in dev.hilla
-
Annotation marks the class itself should not be treated as an
Endpoint. - EndpointGeneratorTaskFactoryImpl - Class in dev.hilla.frontend
-
An implementation of the EndpointGeneratorTaskFactory, which creates endpoint generator tasks.
- EndpointGeneratorTaskFactoryImpl() - Constructor for class dev.hilla.frontend.EndpointGeneratorTaskFactoryImpl
- EndpointInternalException(String) - Constructor for exception dev.hilla.EndpointInvocationException.EndpointInternalException
-
Creates a new instance.
- EndpointInvocationException - Exception in dev.hilla
-
Exception thrown by EndpointInvoker when invocation fails.
- EndpointInvocationException(String) - Constructor for exception dev.hilla.EndpointInvocationException
-
Creates a new instance..
- EndpointInvocationException.EndpointAccessDeniedException - Exception in dev.hilla
-
Exception indicating access to the endpoint was denied.
- EndpointInvocationException.EndpointBadRequestException - Exception in dev.hilla
-
Exception indicating a problem with the request data.
- EndpointInvocationException.EndpointInternalException - Exception in dev.hilla
-
Exception indicating an unexpected server error occured during handling of the endpoint invocation.
- EndpointInvocationException.EndpointNotFoundException - Exception in dev.hilla
-
Exception indicating the endpoint was not found.
- endpointInvoker(ApplicationContext, ObjectMapper, ExplicitNullableTypeChecker, ServletContext, EndpointRegistry) - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers the endpoint invoker.
- EndpointInvoker - Class in dev.hilla
-
Handles invocation of endpoint methods after checking the user has proper access.
- EndpointInvoker(ApplicationContext, ObjectMapper, ExplicitNullableTypeChecker, ServletContext, EndpointRegistry) - Constructor for class dev.hilla.EndpointInvoker
-
Creates an instance of this bean.
- endpointNameChecker() - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers an endpoint name checker responsible for validating the endpoint names.
- EndpointNameChecker - Class in dev.hilla
-
A checker responsible for validating the Vaadin endpoint names.
- EndpointNameChecker() - Constructor for class dev.hilla.EndpointNameChecker
- EndpointNotFoundException() - Constructor for exception dev.hilla.EndpointInvocationException.EndpointNotFoundException
-
Creates a new instance..
- EndpointProperties - Class in dev.hilla
-
Class that contains all Vaadin endpoint customizable properties.
- EndpointProperties() - Constructor for class dev.hilla.EndpointProperties
- endpointRegistry(EndpointNameChecker) - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers the endpoint registry.
- EndpointRegistry - Class in dev.hilla
-
Keeps track of registered endpoints.
- EndpointRegistry(EndpointNameChecker) - Constructor for class dev.hilla.EndpointRegistry
-
Creates a new registry using the given name checker.
- EndpointRegistry.VaadinEndpointData - Class in dev.hilla
-
Tracks methods inside a given endpoint class.
- EndpointSubscription<TT> - Class in dev.hilla
-
A subscription that wraps a Flux and allows to listen for unsubscribe events from the browser.
- EndpointsValidator - Class in dev.hilla.startup
-
Validation class that is run during servlet container initialization which checks that application is running with the appropriate spring dependencies when there are
Endpointannotations. - EndpointsValidator() - Constructor for class dev.hilla.startup.EndpointsValidator
- EndpointTransferMapper - Class in dev.hilla.endpointransfermapper
-
Defines mappings for certain endpoint types to corresponding transfer types.
- EndpointTransferMapper() - Constructor for class dev.hilla.endpointransfermapper.EndpointTransferMapper
-
Creates a new instance.
- EndpointTransferMapper.Mapper<ENDPOINTTYPE,TRANSFERTYPE> - Interface in dev.hilla.endpointransfermapper
-
A mapper for endpoint values that is capable of converting between the given endpoint and transfer type.
- endpointUtil() - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers endpoint utility methods.
- EndpointUtil - Class in dev.hilla
-
A util class related to
Endpoint. - EndpointUtil() - Constructor for class dev.hilla.EndpointUtil
- EndpointValidationException - Exception in dev.hilla.exception
-
A validation exception class that is intended to be thrown when any endpoint method receives invalid parameter(s).
- EndpointValidationException(EndpointValidationException.ValidationErrorData) - Constructor for exception dev.hilla.exception.EndpointValidationException
-
Creates a validation exception from the error data.
- EndpointValidationException(String, List<EndpointValidationException.ValidationErrorData>) - Constructor for exception dev.hilla.exception.EndpointValidationException
-
Creates a validation exception from a error data list.
- EndpointValidationException(List<EndpointValidationException.ValidationErrorData>) - Constructor for exception dev.hilla.exception.EndpointValidationException
-
Creates a validation exception from a error data list.
- EndpointValidationException.ValidationErrorData - Class in dev.hilla.exception
-
A validation error data.
- ERROR_MESSAGE_FIELD - Static variable in exception dev.hilla.exception.EndpointException
-
A message field to be used in the exception's serialization data in
EndpointException.getSerializationData(). - escapeQuotationMark(String) - Method in class dev.hilla.generator.typescript.CodeGenerator
- escapeReservedWord(String) - Method in class dev.hilla.generator.typescript.CodeGenerator
-
Escapes a reserved word as defined in the `reservedWords` array.
- escapeUnsafeCharacters(String) - Method in class dev.hilla.generator.typescript.CodeGenerator
- execute() - Method in class dev.hilla.frontend.TaskGenerateEndpointImpl
- execute() - Method in class dev.hilla.frontend.TaskGenerateOpenAPIImpl
- ExplicitNullableTypeChecker - Class in dev.hilla
-
A checker for TypeScript null compatibility in Vaadin endpoint methods parameter and return types.
- ExplicitNullableTypeChecker() - Constructor for class dev.hilla.ExplicitNullableTypeChecker
- EXTENSION_VAADIN_CONNECT_PARAMETERS_DESCRIPTION - Static variable in class dev.hilla.generator.OpenAPIObjectGenerator
- EXTENSION_VAADIN_FILE_PATH - Static variable in class dev.hilla.generator.OpenAPIObjectGenerator
F
- FeatureFlagCondition - Class in dev.hilla
-
Checks if a given feature flag, defined using
ConditionalOnFeatureFlag, is enabled. - FeatureFlagCondition() - Constructor for class dev.hilla.FeatureFlagCondition
- firstNonBlank(String...) - Static method in class dev.hilla.generator.GeneratorUtils
-
Searches a first non-blank string in the received arguments.
- fromModel(String, Schema, Map<String, Schema>) - Method in class dev.hilla.generator.typescript.CodeGenerator
- fromOperation(String, String, Operation, Map<String, Schema>, OpenAPI) - Method in class dev.hilla.generator.typescript.CodeGenerator
- fromRequestBody(RequestBody, String, Schema, Map<String, Schema>, Set<String>) - Method in class dev.hilla.generator.typescript.CodeGenerator
G
- generate() - Method in class dev.hilla.generator.ClientAPIGenerator
-
Generates the client file in the file specified.
- generateFiles(ClientOptInput) - Static method in class dev.hilla.generator.typescript.CodeGenerator
-
Performs file generation on the specified input.
- generateOpenApiSpec(Collection<Path>, ClassLoader, Path) - Method in class dev.hilla.generator.OpenAPISpecGenerator
-
Generates the OpenAPI spec file based on the sources provided.
- generateOpenApiSpec(Collection<Path>, Path) - Method in class dev.hilla.generator.OpenAPISpecGenerator
-
Generates the OpenAPI spec file based on the sources provided.
- GeneratorUtils - Class in dev.hilla.generator
-
A set of static methods used in CCDM generators, so as flow do not depend on external libraries for these operations.
- getAccessAnnotationChecker() - Method in class dev.hilla.auth.EndpointAccessChecker
-
Returns the instance used for checking access based on annotations.
- getApplicationApiVersion() - Method in class dev.hilla.generator.OpenAPIConfiguration
-
Get application api version.
- getApplicationTitle() - Method in class dev.hilla.generator.OpenAPIConfiguration
-
Get application title.
- getDefaultTemplateDir() - Method in class dev.hilla.generator.typescript.CodeGenerator
- getDetail() - Method in exception dev.hilla.exception.EndpointException
-
Gets the detail of the exception, if provided by user,
nullotherwise. - getDirection() - Method in class dev.hilla.mappedtypes.Order
- getEndpointName() - Method in class dev.hilla.push.messages.fromclient.SubscribeMessage
- getEndpointObject() - Method in class dev.hilla.EndpointRegistry.VaadinEndpointData
- getEndpointPrefix() - Method in class dev.hilla.EndpointProperties
-
Customize the prefix for all Vaadin endpoints.
- getEndpointType() - Method in interface dev.hilla.endpointransfermapper.EndpointTransferMapper.Mapper
-
Returns the type used in the endpoint.
- getEndpointType() - Method in class dev.hilla.endpointransfermapper.PageableMapper
- getEndpointType() - Method in class dev.hilla.endpointransfermapper.PageMapper
- getEndpointType() - Method in class dev.hilla.endpointransfermapper.SortMapper
- getEndpointType() - Method in class dev.hilla.endpointransfermapper.UUIDMapper
- getFlux() - Method in class dev.hilla.EndpointSubscription
-
Returns the flux value provide for this subscription.
- getHelp() - Method in class dev.hilla.generator.typescript.CodeGenerator
-
Returns human-friendly help for the generator.
- getId() - Method in class dev.hilla.push.messages.fromclient.AbstractServerMessage
- getId() - Method in class dev.hilla.push.messages.toclient.AbstractClientMessage
- getItem() - Method in class dev.hilla.push.messages.toclient.ClientMessageUpdate
- getMapper(Class<T>) - Method in class dev.hilla.endpointransfermapper.EndpointTransferMapper
-
Gets the mapper for the given endpoint type.
- getMessage() - Method in exception dev.hilla.EndpointInvocationException
-
Returns the additional message that is passed to the client side.
- getMessage() - Method in class dev.hilla.exception.EndpointValidationException.ValidationErrorData
-
Gets the validation error message.
- getMessage() - Method in class dev.hilla.push.messages.toclient.ClientMessageError
- getMethod(String) - Method in class dev.hilla.EndpointRegistry.VaadinEndpointData
-
Finds a method with the given name.
- getMethodName() - Method in class dev.hilla.push.messages.fromclient.SubscribeMessage
- getName() - Method in class dev.hilla.generator.typescript.CodeGenerator
-
Configures a friendly name for the generator.
- getNullHandling() - Method in class dev.hilla.mappedtypes.Order
- getOnUnsubscribe() - Method in class dev.hilla.EndpointSubscription
-
Returns the callback that is invoked when the browser unsubscribes from the subscription.
- getOpenApi() - Method in class dev.hilla.generator.OpenAPIObjectGenerator
-
Gets the Open API, generates it if necessary.
- getOrders() - Method in class dev.hilla.mappedtypes.Sort
- getOutputFilePath() - Method in class dev.hilla.generator.ClientAPIGenerator
-
Gets the path of the client API file.
- getPageNumber() - Method in class dev.hilla.mappedtypes.Pageable
- getPageSize() - Method in class dev.hilla.mappedtypes.Pageable
- getParameterName() - Method in class dev.hilla.exception.EndpointValidationException.ValidationErrorData
-
Gets the parameter name that caused the validation error.
- getParams() - Method in class dev.hilla.push.messages.fromclient.SubscribeMessage
- getProperty() - Method in class dev.hilla.mappedtypes.Order
- getReturnType(String, String) - Method in class dev.hilla.EndpointInvoker
-
Gets the return type of the given method.
- getSchemaType(Schema) - Method in class dev.hilla.generator.typescript.CodeGenerator
- getSecurityHolderAuthentication() - Static method in class dev.hilla.AuthenticationUtil
-
Gets the authenticated user from the Spring SecurityContextHolder.
- getSecurityHolderRoleChecker() - Static method in class dev.hilla.AuthenticationUtil
-
Gets a function for checking if the authenticated user from the Spring SecurityContextHolder is in a given role.
- getSerializationData() - Method in exception dev.hilla.exception.EndpointException
-
Creates a map with the serialization data to be sent to the client when the exception thrown is processed by
EndpointController. - getSerializationData() - Method in exception dev.hilla.exception.EndpointValidationException
- getServerDescription() - Method in class dev.hilla.generator.OpenAPIConfiguration
-
Get server description.
- getServerUrl() - Method in class dev.hilla.generator.OpenAPIConfiguration
-
Get server url.
- getSort() - Method in class dev.hilla.mappedtypes.Pageable
- getTag() - Method in class dev.hilla.generator.typescript.CodeGenerator
-
Configures the type of generator.
- getTemplateDir() - Method in class dev.hilla.generator.typescript.CodeGenerator
- getTransferType() - Method in interface dev.hilla.endpointransfermapper.EndpointTransferMapper.Mapper
-
Returns the type used when transfering data to/from the client.
- getTransferType() - Method in class dev.hilla.endpointransfermapper.PageableMapper
- getTransferType() - Method in class dev.hilla.endpointransfermapper.PageMapper
- getTransferType() - Method in class dev.hilla.endpointransfermapper.SortMapper
- getTransferType() - Method in class dev.hilla.endpointransfermapper.UUIDMapper
- getTransferType(Class<?>) - Method in class dev.hilla.endpointransfermapper.EndpointTransferMapper
-
Gets the transfer type for the given endpoint type.
- getTransferType(String) - Method in class dev.hilla.endpointransfermapper.EndpointTransferMapper
-
Gets the transfer type for the given endpoint type.
- getTypeDeclaration(Schema) - Method in class dev.hilla.generator.typescript.CodeGenerator
- getValidationErrorData() - Method in exception dev.hilla.exception.EndpointValidationException
-
Gets the collection of the data on the validation errors.
H
- handleBrowserConnect(String) - Method in class dev.hilla.push.PushMessageHandler
-
Called when the browser establishes a new connection.
- handleBrowserDisconnect(String) - Method in class dev.hilla.push.PushMessageHandler
-
Called when the browser connection has been lost.
- handleMessage(String, AbstractServerMessage, Consumer<AbstractClientMessage>) - Method in class dev.hilla.push.PushMessageHandler
-
Handles the message.
- hasAnnotation(NodeWithAnnotations<?>, CompilationUnit, Class<? extends Annotation>) - Static method in class dev.hilla.generator.GeneratorUtils
-
Checks whether the declaration has the specific annotation.
I
- invoke(String, String, ObjectNode, Principal, Function<String, Boolean>) - Method in class dev.hilla.EndpointInvoker
-
Invoke the given endpoint method with the given parameters if the user has access to do so.
- isAnonymousEndpoint(HttpServletRequest) - Method in class dev.hilla.EndpointUtil
-
Checks if the given request goes to an anonymous (public) endpoint.
- isBlank(String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Checks if the string contains only whitespaces.
- isCsrfProtectionEnabled() - Method in class dev.hilla.auth.CsrfChecker
-
Checks if CSRF token checking in endpoints is enabled.
- isEndpointRequest(HttpServletRequest) - Method in class dev.hilla.EndpointUtil
-
Checks if the request is for an endpoint.
- isIgnoreCase() - Method in class dev.hilla.mappedtypes.Order
- isNotBlank(String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Checks if the string contains not only whitespaces.
- isNotTrue(Boolean) - Static method in class dev.hilla.generator.GeneratorUtils
-
Checks a value for being not truth (or null).
- isRequired(boolean, List<AnnotationExpr>) - Static method in class dev.hilla.ExplicitNullableTypeChecker
-
Checks if the parsed node should be required (not nullable) in the generated Typescript code based on the list of annotations.
- isRequired(AnnotatedElement, boolean) - Static method in class dev.hilla.ExplicitNullableTypeChecker
-
Checks if the reflected element should be required (not nullable) in the generated Typescript code based on annotations.
- isTrue(Boolean) - Static method in class dev.hilla.generator.GeneratorUtils
-
Checks a value for being true with an additional null check.
M
- MainGenerator - Class in dev.hilla.generator
-
Performs the generation of TypeScript files for endpoints, Client API file and endpoint barrel file based on the data from the OpenAPI json.
- MainGenerator(File, File) - Constructor for class dev.hilla.generator.MainGenerator
-
Initializes the generator.
- MainGenerator(File, File, String) - Constructor for class dev.hilla.generator.MainGenerator
-
Initializes the generator.
- MainGenerator(File, File, Properties) - Constructor for class dev.hilla.generator.MainGenerator
-
Initializes the generator.
- MainGenerator(File, File, Properties, String) - Constructor for class dev.hilla.generator.MainGenerator
-
Initializes the generator.
- matches(ConditionContext, AnnotatedTypeMetadata) - Method in class dev.hilla.FeatureFlagCondition
- MODEL - Static variable in class dev.hilla.generator.MainGenerator
- MODEL_TS - Static variable in class dev.hilla.generator.MainGenerator
- modelFileFolder() - Method in class dev.hilla.generator.typescript.CodeGenerator
-
Location to write model files.
- modifyIndexHtmlResponse(IndexHtmlResponse) - Method in class dev.hilla.auth.CsrfIndexHtmlRequestListener
N
- Nonnull - Annotation Type in dev.hilla
-
Annotation to mark either field, method, parameter or type parameter as non-nullable.
O
- of(Flux<T>, Runnable) - Static method in class dev.hilla.EndpointSubscription
-
Creates a new endpoint subscription.
- onRequest(AtmosphereResource) - Method in class dev.hilla.push.PushEndpoint
- onStateChange(AtmosphereResourceEvent) - Method in class dev.hilla.push.PushEndpoint
- OpenAPIConfiguration - Class in dev.hilla.generator
-
Basic information of the OpenApi spec.
- OpenAPIConfiguration(String, String, String, String) - Constructor for class dev.hilla.generator.OpenAPIConfiguration
-
Create a new OpenApi configuration.
- OpenAPIObjectGenerator - Class in dev.hilla.generator
-
Java parser class which scans for all
Endpointclasses and produces OpenApi json. - OpenAPIObjectGenerator() - Constructor for class dev.hilla.generator.OpenAPIObjectGenerator
- OpenAPISpecGenerator - Class in dev.hilla.generator
-
A generator class that creates the OpenAPI specification file from the sources provided.
- OpenAPISpecGenerator(Properties) - Constructor for class dev.hilla.generator.OpenAPISpecGenerator
-
Creates the generator, getting the data needed for the generation out of the application properties.
- OPTIONAL_SUFFIX - Static variable in class dev.hilla.generator.MainGenerator
- Order - Class in dev.hilla.mappedtypes
-
A DTO for
Sort.Order. - Order() - Constructor for class dev.hilla.mappedtypes.Order
P
- Pageable - Class in dev.hilla.mappedtypes
-
A DTO for
Pageable. - Pageable() - Constructor for class dev.hilla.mappedtypes.Pageable
- PageableMapper - Class in dev.hilla.endpointransfermapper
- PageableMapper() - Constructor for class dev.hilla.endpointransfermapper.PageableMapper
- PageMapper - Class in dev.hilla.endpointransfermapper
-
A mapper between
PageandList. - PageMapper() - Constructor for class dev.hilla.endpointransfermapper.PageMapper
- postProcessAllModels(Map<String, Object>) - Method in class dev.hilla.generator.typescript.CodeGenerator
- postProcessOperations(Map<String, Object>) - Method in class dev.hilla.generator.typescript.CodeGenerator
- PREFIX - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- preprocessOpenAPI(OpenAPI) - Method in class dev.hilla.generator.typescript.CodeGenerator
- process(Set<Class<?>>, ServletContext) - Method in class dev.hilla.startup.EndpointsValidator
- PushConfigurer - Class in dev.hilla.push
-
Defines the beans needed for push in Hilla.
- PushConfigurer() - Constructor for class dev.hilla.push.PushConfigurer
- PushEndpoint - Class in dev.hilla.push
-
Sets up and configures the push channel.
- PushEndpoint() - Constructor for class dev.hilla.push.PushEndpoint
- PushMessageHandler - Class in dev.hilla.push
-
Handles incoming requests from the client and connects them to fluxes returned from endpoints.
- PushMessageHandler(EndpointInvoker) - Constructor for class dev.hilla.push.PushMessageHandler
-
Creates the instance.
R
- removeEnd(String, String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Removes the end of a string.
- replaceChars(String, char, char) - Static method in class dev.hilla.generator.GeneratorUtils
-
Replaces one char with another in a string with an additional null check.
S
- serveEndpoint(String, String, ObjectNode, HttpServletRequest) - Method in class dev.hilla.EndpointController
-
Captures and processes the Vaadin endpoint requests.
- SERVER - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- SERVER_DESCRIPTION - Static variable in class dev.hilla.generator.OpenAPISpecGenerator
- serviceInit(ServiceInitEvent) - Method in class dev.hilla.startup.CsrfServiceInitListener
- setCsrfProtection(boolean) - Method in class dev.hilla.auth.CsrfChecker
-
Enable or disable CSRF token checking in endpoints.
- setDirection(Sort.Direction) - Method in class dev.hilla.mappedtypes.Order
- setEndpointName(String) - Method in class dev.hilla.push.messages.fromclient.SubscribeMessage
- setId(String) - Method in class dev.hilla.push.messages.fromclient.AbstractServerMessage
- setId(String) - Method in class dev.hilla.push.messages.toclient.AbstractClientMessage
- setIgnoreCase(boolean) - Method in class dev.hilla.mappedtypes.Order
- setItem(Object) - Method in class dev.hilla.push.messages.toclient.ClientMessageUpdate
- setMethodName(String) - Method in class dev.hilla.push.messages.fromclient.SubscribeMessage
- setNullHandling(Sort.NullHandling) - Method in class dev.hilla.mappedtypes.Order
- setOpenApiConfiguration(OpenAPIConfiguration) - Method in class dev.hilla.generator.OpenAPIObjectGenerator
-
Sets the configuration to be used when generating an Open API spec.
- setOrders(List<Order>) - Method in class dev.hilla.mappedtypes.Sort
- setPageNumber(int) - Method in class dev.hilla.mappedtypes.Pageable
- setPageSize(int) - Method in class dev.hilla.mappedtypes.Pageable
- setParams(ArrayNode) - Method in class dev.hilla.push.messages.fromclient.SubscribeMessage
- setProperty(String) - Method in class dev.hilla.mappedtypes.Order
- setSort(Sort) - Method in class dev.hilla.mappedtypes.Pageable
- Sort - Class in dev.hilla.mappedtypes
-
A DTO for
Sort. - Sort() - Constructor for class dev.hilla.mappedtypes.Sort
- SortMapper - Class in dev.hilla.endpointransfermapper
-
A mapper between
SortandSort. - SortMapper() - Constructor for class dev.hilla.endpointransfermapper.SortMapper
- start() - Method in class dev.hilla.generator.MainGenerator
-
Starts the generation.
- SubscribeMessage - Class in dev.hilla.push.messages.fromclient
- SubscribeMessage() - Constructor for class dev.hilla.push.messages.fromclient.SubscribeMessage
- substringAfter(String, String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Gets the substring of an s string that goes after the first entry of the p string.
- substringAfterLast(String, String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Gets the substring of an s string that goes after the last entry of the p string.
- substringBeforeLast(String, String) - Static method in class dev.hilla.generator.GeneratorUtils
-
Gets the substring of an s string that goes before the last entry of the p string.
T
- TaskGenerateEndpointImpl - Class in dev.hilla.frontend
-
Starts the generation of TS files for endpoints.
- TaskGenerateOpenAPIImpl - Class in dev.hilla.frontend
-
Generate OpenAPI json file for Vaadin Endpoints.
- toApiName(String) - Method in class dev.hilla.generator.typescript.CodeGenerator
- toEndpointType(Pageable) - Method in class dev.hilla.endpointransfermapper.PageableMapper
- toEndpointType(Sort) - Method in class dev.hilla.endpointransfermapper.SortMapper
- toEndpointType(Object, Class<T>) - Method in class dev.hilla.endpointransfermapper.EndpointTransferMapper
-
Converts the given object from its transfer type to the given endpoint type.
- toEndpointType(String) - Method in class dev.hilla.endpointransfermapper.UUIDMapper
- toEndpointType(List) - Method in class dev.hilla.endpointransfermapper.PageMapper
- toEndpointType(TRANSFERTYPE) - Method in interface dev.hilla.endpointransfermapper.EndpointTransferMapper.Mapper
-
Converts the given transfer value to the endpoint type.
- toEnumVarName(String, String) - Method in class dev.hilla.generator.typescript.CodeGenerator
- toModelFilename(String) - Method in class dev.hilla.generator.typescript.CodeGenerator
- toModelName(String) - Method in class dev.hilla.generator.typescript.CodeGenerator
- toString() - Method in class dev.hilla.push.messages.toclient.ClientMessageComplete
- toString() - Method in class dev.hilla.push.messages.toclient.ClientMessageError
- toString() - Method in class dev.hilla.push.messages.toclient.ClientMessageUpdate
- toTransferType(ENDPOINTTYPE) - Method in interface dev.hilla.endpointransfermapper.EndpointTransferMapper.Mapper
-
Converts the given endpoint value to the transfer type.
- toTransferType(Object) - Method in class dev.hilla.endpointransfermapper.EndpointTransferMapper
-
Converts the given object from its endpoint type to its transfer type.
- toTransferType(UUID) - Method in class dev.hilla.endpointransfermapper.UUIDMapper
- toTransferType(Page) - Method in class dev.hilla.endpointransfermapper.PageMapper
- toTransferType(Pageable) - Method in class dev.hilla.endpointransfermapper.PageableMapper
- toTransferType(Sort) - Method in class dev.hilla.endpointransfermapper.SortMapper
- TS - Static variable in class dev.hilla.generator.MainGenerator
- typeChecker() - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers a
ExplicitNullableTypeCheckerbean instance.
U
- UnsubscribeMessage - Class in dev.hilla.push.messages.fromclient
- UnsubscribeMessage() - Constructor for class dev.hilla.push.messages.fromclient.UnsubscribeMessage
- UUIDMapper - Class in dev.hilla.endpointransfermapper
- UUIDMapper() - Constructor for class dev.hilla.endpointransfermapper.UUIDMapper
V
- VAADIN_ENDPOINT_MAPPER_BEAN_QUALIFIER - Static variable in class dev.hilla.EndpointController
-
A qualifier to override the request and response default json mapper.
- validateCsrfTokenInRequest(HttpServletRequest) - Method in class dev.hilla.auth.CsrfChecker
-
Validates the CSRF token that is included in the request.
- ValidationErrorData(String) - Constructor for class dev.hilla.exception.EndpointValidationException.ValidationErrorData
-
Creates a validation error data object.
- ValidationErrorData(String, String) - Constructor for class dev.hilla.exception.EndpointValidationException.ValidationErrorData
-
Creates a validation error data object.
- value() - Method in annotation type dev.hilla.ConditionalOnFeatureFlag
-
The id of the feature flag needed for the condition to be true.
- value() - Method in annotation type dev.hilla.Endpoint
-
The name of an endpoint to use.
W
- webMvcRegistrationsHandlerMapping() - Method in class dev.hilla.EndpointControllerConfiguration
-
Registers
EndpointControllerto useEndpointProperties.getEndpointPrefix()as a prefix for all Vaadin endpoints.
Z
- zip(List<P1>, List<P2>, BiFunction<P1, P2, R>) - Static method in class dev.hilla.generator.GeneratorUtils
-
Runs a lambda against elements of two lists at once.
All Classes All Packages