diff --git a/l10n/tmx/quarkus.tmx b/l10n/tmx/quarkus.tmx index fbc6230530..868b11092a 100644 --- a/l10n/tmx/quarkus.tmx +++ b/l10n/tmx/quarkus.tmx @@ -7367,6 +7367,14 @@ In the first step we should identify the _reason_. Um exemplo de um passo de construção condicional + + + An example of a full CORS filter configuration that includes a regular expression defining an allowed origin + + + Um exemplo de uma configuração completa de filtro CORS que inclui uma expressão regular que define uma origem permitida + + An example of parsing an XML config file using JAXB is shown in the `TestProcessor#parseServiceXmlConfig` method: @@ -9060,6 +9068,16 @@ um Servlet mapeado para `/myservlet` , basta adicionar o seguinte no meu teste:< Por padrão, os recursos do Kubernetes não contêm sondas de prontidão (readiness) e vivacidade (liveness). Para adicioná-las, importe a extensão Smallrye Health para seu arquivo de construção: + + + By default, the Quarkus gRPC extension invokes service methods on an event-loop thread. +See the xref:quarkus-reactive-architecture.adoc[Quarkus Reactive Architecture documentation] for further details on this topic. +But, you can also use the link:{blocking_annotation}[@Blocking] annotation to indicate that the service is _blocking_ and should be run on a worker thread. + + + Por padrão, a extensão gRPC do Quarkus invoca métodos de serviço em um thread de loop de evento. Consulte a xref:quarkus-reactive-architecture.adoc[documentação da Arquitetura Reativa do Quarkus] para obter mais detalhes sobre esse tópico. Mas você também pode usar a anotação link:{blocking_annotation}[@Blocking] para indicar que o serviço está _bloqueando_ e deve ser executado em um thread de trabalho. + + By default, the Redis backend stores the entry using the following keys: `cache:$cache-name:$cache-key`, where `cache-key` is the key the application uses. @@ -9261,6 +9279,14 @@ Because we used the `${...}` syntax, the actual value of the parameter will be o CLI + + + CORS filter + + + Filtro CORS + + Cache your application data @@ -10169,6 +10195,23 @@ Tipo: _string_ Configuração para produção + + + Configuring gRPC services to use virtual threads + + + Configurando serviços gRPC para usar threads virtuais + + + + + Configuring required origins when developing a Quarkus application requiring CORS support can be difficult. +In such cases, consider allowing all origins in dev mode only in order to focus on the actual development first: + + + Pode ser difícil configurar as origens necessárias ao desenvolver uma aplicação Quarkus que exija suporte a CORS. Nesses casos, considere permitir todas as origens apenas no modo de desenvolvimento para se concentrar primeiro no desenvolvimento real: + + Configuring the Native Executable @@ -10989,6 +11032,22 @@ readiness check for an extension (liveness check is designed to express the fact Prevenção de falsificação de solicitação entre sites (CSRF) + + + Cross-origin resource sharing + + + Compartilhamento de recursos entre origens + + + + + Cross-origin resource sharing (CORS) is an HTTP-header-based mechanism that allows a server to indicate any origins other than its own, from which a browser should permit loading resources. + + + O CORS (Cross-origin resource sharing, compartilhamento de recursos entre origens) é um mecanismo baseado em cabeçalhos HTTP que permite que um servidor indique quaisquer origens diferentes da sua, a partir das quais um navegador deve permitir o carregamento de recursos. + + Custom Lambda @@ -12076,6 +12135,15 @@ conceptual goal that does not have a concrete representation. Ativar a autenticação básica + + + Enable all origins exclusively for the dev profile. +It is not advisable to permit all origins in a production environment, as it can lead to significant security risks. + + + Permitir todas as origens exclusivamente para o perfil de desenvolvimento. Não é aconselhável permitir todas as origens em um ambiente de produção, pois isso pode levar a riscos de segurança significativos. + + Enable batching of messages. @@ -15472,6 +15540,14 @@ You can do it with Mockito's `@InjectMock` or with `QuarkusMock`. Se você estiver utilizando um link:https://smallrye.io/smallrye-mutiny-vertx-bindings/latest/[cliente Vert.x que utilize as ligações Mutiny], use os métodos `andAwait()` que bloqueiam até obter o resultado sem fixar a carrier thread. Isso inclui todos os drivers SQL reativos. + + + If you use regular expressions in an `application.properties` file, make sure four backward slashes are used to represent `.` and other regular expression metadata characters as normal characters, for example, `\\\\.` represents a `.` character while `\\.` represents a metadata character allowing for any character. + + + Se usar expressões regulares em um arquivo `application.properties`, certifique-se de que quatro barras invertidas sejam usadas para representar `.` e outros caracteres de metadados de expressões regulares como caracteres normais; por exemplo, `\\\\.` representa um caractere `.` , enquanto `\\.` representa um caractere de metadados que permite qualquer caractere. + + If you want a lower memory footprint and faster initialization times for your lambda, you can compile your Java @@ -17842,6 +17918,15 @@ Crie o arquivo `src/main/java/org/acme/GreetingService.java` com o seguinte cont Vejamos um exemplo sobre como registrar o seu próprio manipulador de redirecionamento personalizado utilizando a anotação `@ClientRedirectHandler`: + + + Let's see an example of how to implement a gRPC service using virtual threads. +First, make sure to have the gRPC extension dependency in your build file: + + + Vamos ver um exemplo de como implementar um serviço gRPC usando threads virtuais. Primeiro, certifique-se de ter a dependência da extensão gRPC em seu arquivo de construção: + + Let's start a Redis server on the port 6379 using: @@ -17982,6 +18067,14 @@ It is also possible to print out detailed information about a goal, all its para Limite de uso de memória do cliente (em byte). O padrão de 64 milhões pode garantir uma alta taxa de transferência do produtor. + + + Limitations + + + Limitações + + Links these three modules where necessary: @@ -20899,6 +20992,14 @@ For example, the credentials can come from the `Authorization` header, client HT Ferramentas do Quarkus no seu IDE favorito + + + Quarkus Virtual Thread support for gRPC services + + + Suporte a Threads Virtuais do Quarkus para serviços gRPC + + Quarkus aids you on your journey to reactive. Quarkus is based on a <a href="https://quarkus.io/version/main/guides/quarkus-reactive-architecture">reactive core</a> allowing your application to mix reactive and imperative components. As an example, you can implement reactive HTTP endpoint using the <a href="https://quarkus.io/guides/resteasy-reactive">RESTEasy Reactive extension</a> as follows: @@ -21282,6 +21383,15 @@ H2 and Derby which are run in-process. Dev Services are supported for both JDBC O Quarkus fornece o Mojo `create-extension` do Maven para inicializar o seu projeto de extensão. + + + Quarkus provides a CORS filter, which implements the `jakarta.servlet.Filter` interface and intercepts all incoming HTTP requests. +It can be enabled in the Quarkus configuration file, `src/main/resources/application.properties`: + + + O Quarkus fornece um filtro CORS, que implementa a interface `jakarta.servlet.Filter` e intercepta todas as requisições HTTP recebidas. Ele pode ser ativado no arquivo de configuração do Quarkus, `src/main/resources/application.properties` : + + Quarkus provides a cohesive, fun to use, full-stack framework by leveraging a growing list of hundreds of best-of-breed libraries that you love and use. All wired on a standard backbone. @@ -22327,6 +22437,14 @@ The `event` parameter takes any JSON file, in this case the sample `payload.json Execute os testes para verificar a alteração. + + + Run your application with: + + + Execute sua aplicação com: + + Running Native @@ -23629,6 +23747,14 @@ Quatro tipos de assinatura estão disponíveis: + Java Subatômico Supersônico + + + Support all origins in dev mode + + + Suporte a todas as origens no modo de desenvolvimento + + Supported authentication mechanisms @@ -25583,6 +25709,14 @@ In this scenario, `Dev Services for PostgreSQL` launches and configures a `Postg O formato é simples: uma classe por linha. + + + The gRPC methods receiving _streams_, such as a `Multi` cannot use `@RunOnVirtualThread`, as the method must not be blocking and produce its result (`Multi` or `Uni`) immediately. + + + Os métodos gRPC que recebem _fluxos_, como um `Multi`, não podem utilizar `@RunOnVirtualThread`, uma vez que o método não deve estar bloqueando e produzir o seu resultado ( `Multi` ou `Uni`) imediatamente. + + The gRPC server @@ -25630,6 +25764,14 @@ to take advantage of it. Otherwise, the Quarkus JUnit integration should be suf O link:https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html[AWS SAM CLI] permite que execute seus lambdas localmente no seu laptop em um ambiente Lambda simulado. Isso requer a instalação do link:https://www.docker.com/products/docker-desktop[docker] . Essa é uma abordagem opcional, caso opte por aproveitá-la. Caso contrário, a integração do Quarkus JUnit deve ser suficiente para a maioria das suas necessidades. + + + The idea behind Quarkus Virtual Thread support for gRPC services is to offload the service method invocation on virtual threads, instead of running it on an event-loop thread or a worker thread. + + + A ideia por trás do suporte a Threads Virtuais do Quarkus para serviços gRPC é descarregar a invocação do método de serviço em threads virtuais, em vez de executá-lo em um thread de loop de evento ou em um thread de trabalho. + + The implementation class of ServiceUrlProvider used to generate ServiceUrl. @@ -26513,6 +26655,14 @@ Tipo: _long_ Nesse caso, o nome da interface do serviço é: `hello.Greeter`, o nome do stub Mutiny é: `hello.MutinyGreeterGrpc.MutinyGreeterStub` e o nome do stub bloqueante é: `hello.GreeterGrpc.GreeterBlockingStub`. + + + Then you can start using the annotation `@RunOnVirtualThread` in your service implementation: + + + Em seguida, pode começar a utilizar a anotação `@RunOnVirtualThread` na implementação do seu serviço: + + Then you must create a pull request adding a `your-extension.yaml` file in the `extensions/` directory in the link:https://github.com/quarkusio/quarkus-extension-catalog[Quarkus Extension Catalog]. The YAML must have the following structure: @@ -26847,6 +26997,15 @@ it is recommended you add these to your `application.properties` in order to avo Estes endpoints de aplicação não relacionados são normalmente acessíveis através do prefixo `/q`, da seguinte forma: + + + These origins consist of a single domain, scheme, and port. +For the complete origin definition, see the link:https://datatracker.ietf.org/doc/html/rfc6454[Web Origin Concept] page. + + + Essas origens consistem em um único domínio, esquema e porta. Para obter a definição completa de origem, consulte a página link:https://datatracker.ietf.org/doc/html/rfc6454[Conceito de Origem da Web]. + + These properties are especially useful in the development mode or when running the tests where the generated/transformed classes are only held in memory in a class loader. @@ -27728,6 +27887,14 @@ passwords. Este guia explica como diferentes beans podem interagir usando o barramento de eventos. + + + This guide explains how to benefit from Java virtual threads when implementing a gRPC service. + + + Este guia explica como se beneficiar dos threads virtuais Java ao implementar um serviço gRPC. + + This guide explains how to best measure the footprint of a Quarkus application. @@ -28058,6 +28225,16 @@ interactive web applications. Este guia explica os vários métodos suportados pelo Quarkus para autenticar no seu Vault. + + + This guide focuses on using virtual threads with the gRPC extensions. +Please refer to xref:virtual-threads.adoc[Writing simpler reactive REST services with Quarkus Virtual Thread support] +to read more about Java virtual threads in general and the Quarkus Virtual Thread support. + + + Este guia se concentra no uso de threads virtuais com as extensões gRPC. Consulte xref:virtual-threads.adoc[Escrevendo serviços REST reativos mais simples com o suporte a Threads Virtuais do Quarkus] para saber mais sobre os threads virtuais Java em geral e o suporte a Threads Virtuais do Quarkus. + + This guide has shown how you can interact with RabbitMQ using Quarkus. @@ -28978,6 +29155,16 @@ Note that all paths in the configuration may either specify a resource on the cl To enable this strategy, configure the channel with: + + + To enable virtual thread support on a service method, simply add the link:{runonvthread}[@RunOnVirtualThread] annotation to the method. +If the JDK is compatible (Java 19 or later versions - we recommend 21+) then the invocation will be offloaded to a new virtual thread. +It will then be possible to perform blocking operations without blocking the platform thread upon which the virtual thread is mounted. + + + Para ativar o suporte a thread virtual em um método de serviço, basta adicionar a anotação link:{runonvthread}[@RunOnVirtualThread] ao método. Se o JDK for compatível (Java 19 ou versões posteriores - recomendamos 21+), a invocação será transferida para um novo thread virtual. Assim, será possível executar operações de bloqueio sem bloquear o thread da plataforma no qual o thread virtual está montado. + + To examine the completed example, download the {quickstarts-archive-url}[archive] or clone the Git repository: @@ -31628,6 +31815,15 @@ by default for most return values, unless the media type is explicitly set via ` Quando a extensão `quarkus-rest-client-reactive-jackson` estiver instalada, o Quarkus usará o tipo de mídia `application/json` por padrão para a maioria dos valores de retorno, a menos que o tipo de mídia seja explicitamente definido por meio das anotações `@Produces` ou `@Consumes` . + + + When the filter is enabled and identifies an HTTP request as cross-origin, it will enforce the CORS policy. +It will also add headers configured with the following properties before forwarding the request to its intended destination, like a servlet, Jakarta REST resource, or other endpoints. + + + Quando o filtro estiver ativado e identificar uma solicitação HTTP como de origem cruzada, ele aplicará a política CORS. Ele também adicionará cabeçalhos configurados com as seguintes propriedades antes de encaminhar a solicitação ao destino pretendido, como um servlet, um recurso Jakarta REST ou outros endpoints. + + When this build step is run nothing is printed to the console. This is because the `HelloRecorder` that is injected is @@ -32488,6 +32684,14 @@ to produce the final build artifact(s). Também é necessário ajustar o nível mínimo de log para a categoria relevante. + + + You also need to make sure that you are using Java 19 or later (we recommend 21+), this can be enforced in your `pom.xml` file with the following: + + + Você também precisa se certificar de que está usando o Java 19 ou posterior (recomendamos o 21+), o que pode ser garantido no arquivo `pom.xml` com o seguinte: + + You can `create` your function using the following command: @@ -33390,6 +33594,14 @@ Tipo: _boolean_ `/api/users/me` + + + `/https://([a-z0-9\\-_]+)\\\\.app\\\\.mydomain\\\\.com/` is treated as a regular expression because forward slash characters surround it. + + + `/https://([a-z0-9\\-_]+)\\\\.app\\\\.mydomain\\\\.com/` é tratada como uma expressão regular porque os caracteres de barra a cercam. + + `/q/health` @@ -38080,6 +38292,14 @@ Eles delegam a outros tipos de documentação (conceitos ou referência) para fo link:/standards[Saiba mais]. + + + link:https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS[Mozilla HTTP CORS documentation] + + + link:https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS[Documentação do Mozilla HTTP CORS] + + link:https://download.eclipse.org/microprofile/microprofile-rest-client-2.0/microprofile-rest-client-spec-2.0.html[MicroProfile Rest Client specification] @@ -38477,6 +38697,14 @@ Once you have set up `brew`, you can use the `brew install` command to install P ou ter construído o executável nativo usando uma compilação dentro de um container. + + + or to use the Quarkus Dev mode, insert the following to the `quarkus-maven-plugin` configuration: + + + ou para utilizar o modo Quarkus Dev, insira o seguinte na configuração `quarkus-maven-plugin`: + + package org.acme.elytron.security.jpa; @@ -38849,6 +39077,26 @@ quarkus.datasource.jdbc.url=jdbc:postgresql:security_jpa + + + quarkus.http.cors=true +quarkus.http.cors.origins=http://foo.com,http://www.bar.io,/https://([a-z0-9\\-_]+)\\\\.app\\\\.mydomain\\\\.com/ +quarkus.http.cors.methods=GET,PUT,POST +quarkus.http.cors.headers=X-Custom +quarkus.http.cors.exposed-headers=Content-Disposition +quarkus.http.cors.access-control-max-age=24H +quarkus.http.cors.access-control-allow-credentials=true + + + quarkus.http.cors=true +quarkus.http.cors.origins=http://foo.com,http://www.bar.io,/https://([a-z0-9\\-_]+)\\\\.app\\\\.mydomain\\\\.com/ +quarkus.http.cors.methods=GET,PUT,POST +quarkus.http.cors.headers=X-Custom +quarkus.http.cors.exposed-headers=Content-Disposition +quarkus.http.cors.access-control-max-age=24H +quarkus.http.cors.access-control-allow-credentials=true + + quarkus.log.category."org.optaplanner".level=debug @@ -40577,6 +40825,14 @@ Both xref:hibernate-reactive.adoc[Hibernate Reactive] and xref:hibernate-reactiv xref:hibernate-orm.adoc[Usando o Hibernate ORM e o Jakarta Persistence] + + + xref:http-reference.adoc[Quarkus HTTP Reference] + + + xref:http-reference.adoc[Referência HTTP do Quarkus] + + xref:mutiny-primer.adoc[Mutiny - an intuitive reactive programming library]