Compression of communication in Rap 2.0 [message #965910] |
Wed, 31 October 2012 11:56  |
Eclipse User |
|
|
|
Under rap 1.4 it was possible to compress the communication with the org.mortbay.servlet.GzipFilter by adding a filter extension
<extension
point="org.eclipse.equinox.http.registry.filters">
<filter
alias="/"
class="org.mortbay.servlet.GzipFilter"
httpcontextId="org.eclipse.rap.httpcontext"
load-on-startup="true">
</filter>
</extension>
This compression dramatically accelerated the communication and thus improved the GUI performance.
Under Rap 2.0 the jetty version 8.1.3 is used. There, the GZipFilter has been moved to the jetty.servlets package, which is no default plugin of eclipse. I added the respective jar files from the eclipse jetty 8.1.5 distribution (jetty-distribution-8.1.5.v20120716.zip).
However, rap always crashes when a http filter is added with the new GzipFilter.
Can anybody tell me, how it is possible to compress the JSON-Messages under Rap 2.0?
Thanks in advance,
Sebastian
|
|
|
Re: Compression of communication in Rap 2.0 [message #968137 is a reply to message #965910] |
Fri, 02 November 2012 04:07   |
Eclipse User |
|
|
|
Hi Sebastian,
currently, client can't handle compressed JSON. Please file an
enhancement request about this issue.
Thanks,
Ivan
On 10/31/2012 6:17 PM, Sebastian von Klinski wrote:
> Under rap 1.4 it was possible to compress the communication with the
> org.mortbay.servlet.GzipFilter by adding a filter extension
>
> <extension
> point="org.eclipse.equinox.http.registry.filters">
> <filter
> alias="/"
> class="org.mortbay.servlet.GzipFilter"
> httpcontextId="org.eclipse.rap.httpcontext"
> load-on-startup="true">
> </filter>
> </extension>
>
> This compression dramatically accelerated the communication and thus
> improved the GUI performance.
>
> Under Rap 2.0 the jetty version 8.1.3 is used. There, the GZipFilter
> has been moved to the jetty.servlets package, which is no default
> plugin of eclipse. I added the respective jar files from the eclipse
> jetty 8.1.5 distribution (jetty-distribution-8.1.5.v20120716.zip).
>
> However, rap always crashes when a http filter is added with the new
> GzipFilter.
>
> Can anybody tell me, how it is possible to compress the JSON-Messages
> under Rap 2.0?
>
> Thanks in advance,
>
> Sebastian
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05324 seconds