-3

I have a question about Rest web services.

In soap, we can use SOAP handlers to process the request before execution. For example we can parse Soap Headers in Soap Handlers before we are doing the real job.

Is there something like that in Rest services? Rest headers and Rest handlers?

Thanks

Sagar Gangwal
  • 7,544
  • 3
  • 24
  • 38
blst
  • 25
  • 1
  • 6

1 Answers1

0

I guess you are working on client side. If you use jersey framework for rest request , you can use filter implementations. Otherwise If you use apache httpclient, you can use handler implementations.

Jersey docs: https://docs.oracle.com/cd/E19182-01/821-0540/6nlj9lcpf/index.html

apache docs:https://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientWithResponseHandler.java

theMind
  • 194
  • 1
  • 10