|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.http.helper.GZIPHelper
public final class GZIPHelper
Helper class to help wrapping content into GZIP input and output streams.
Field Summary | |
---|---|
static String |
CONTENT_ENCODING
|
static String |
GZIP
|
Method Summary | |
---|---|
static byte[] |
compressGZIP(byte[] data)
|
static boolean |
containsGzip(String str)
Deprecated. use isGzip |
static boolean |
isGzip(Message message)
|
static boolean |
isGzip(String header)
|
static void |
setGZIPContentEncoding(HttpServletResponse response)
Deprecated. set the header using HttpServletResponse.setHeader(String, String) |
static void |
setGZIPMessageHeader(Message message)
Deprecated. set the header using Message.setHeader(String, Object) |
static InputStream |
toGZIPInputStream(String contentEncoding,
byte[] data)
|
static InputStream |
toGZIPInputStream(String contentEncoding,
InputStream in)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTENT_ENCODING
public static final String GZIP
Method Detail |
---|
public static void setGZIPMessageHeader(Message message)
Message.setHeader(String, Object)
public static void setGZIPContentEncoding(HttpServletResponse response)
HttpServletResponse.setHeader(String, String)
public static InputStream toGZIPInputStream(String contentEncoding, InputStream in) throws IOException
IOException
public static InputStream toGZIPInputStream(String contentEncoding, byte[] data) throws Exception
Exception
public static byte[] compressGZIP(byte[] data) throws IOException
IOException
public static boolean isGzip(Message message)
public static boolean isGzip(String header)
public static boolean containsGzip(String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |