org.apache.catalina.tribes.group.interceptors

Class GzipInterceptor

public class GzipInterceptor extends ChannelInterceptorBase

Version: 1.0

Author: Filip Hanik

Field Summary
static intDEFAULT_BUFFER_SIZE
Method Summary
static byte[]compress(byte[] data)
static byte[]decompress(byte[] data)
static voidmain(String[] arg)
voidmessageReceived(ChannelMessage msg)
voidsendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload)

Field Detail

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE

Method Detail

compress

public static byte[] compress(byte[] data)

decompress

public static byte[] decompress(byte[] data)

Parameters: data byte[]

Returns: byte[]

Throws: IOException

UNKNOWN: Fix to create an automatically growing buffer.

main

public static void main(String[] arg)

messageReceived

public void messageReceived(ChannelMessage msg)

sendMessage

public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.