Hi All,
We have upgraded our camel-core library from 2.14.0 to 2.18.0 and Jetty-server
from 8.1.15 to 9.2.28. Our downstream call our API with compressed XML content,
after this upgrade request decompression is not working and XML unmarshaller
fails as it can't parse binary content.
We are facing this issue came only after this upgrade, before this upgrade
decompression was happening automatically.
I had tried with Jetty-server 9.4.14 as well but then request started failing
with Exception "501, method not implemented", after analysis came to know
content-encoding:gzip is not supported and it throw exception if request has
header content-encoding:gzip.
I tried below approach after studying on google but with no success.
public class ConfigServerJettyHttpComponent extends JettyHttpComponent9{
private static final Logger log =
LoggerFactory.getLogger(ConfigServerJettyHttpComponent.class);
protected Server createServer() {
GzipHandler gzipHandler = new GzipHandler();
gzipHandler.addIncludedMethods("GET","POST","PUT");
gzipHandler.setBufferSize(2048);
gzipHandler.setServer(server);
server.setHandler(gzipHandler);
return server;
}
Any help would be appreciated.
Regards,
Samrat
______________________________________________________________________
This email is intended only for the use of the individual(s) to whom it is
addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this e-mail in
error, please advise immediately
and delete the original message. This message may have been altered without
your or our knowledge
and the sender does not accept any liability for any errors or omissions in the
message.
Emails are monitored by supervisory personnel in jurisdictions where monitoring
is permitted.
Such communications are retained and may be produced to regulatory authorities
or others with legal rights to the information.
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users