Este conteúdo não está disponível no idioma selecionado.

28.4. ClientExecutionInterceptors


org.jboss.resteasy.spi.interception.ClientExecutionInterceptor classes are client-side only. They run after the MessageBodyWriter, and after the ClientRequest has been built on the client side. They wrap the HTTP invocation that is sent to the server. In RESTEasy GZIP support, they set the Accept header to contain gzip, deflate before the request is sent. In the RESTEasy client cache, they check that the cache contains a resource before attempting to act on a resource. These interceptors must be annotated with both @ClientInterceptor and @Provider.
    public interface ClientExecutionInterceptor
    {
       ClientResponse execute(ClientExecutionContext ctx) throws Exception;
    }

    public interface ClientExecutionContext
    {
       ClientRequest getRequest();

       ClientResponse proceed() throws Exception;
    }

Copy to Clipboard Toggle word wrap
They work similarly to MessageBodyReader in that you must call proceed() or the invocation will be aborted.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat