it.com.atlassian.gzipfilter
Class TestMimeTypeAndBrowserHandling

java.lang.Object
  extended by it.com.atlassian.gzipfilter.TestMimeTypeAndBrowserHandling

public class TestMimeTypeAndBrowserHandling
extends Object


Constructor Summary
TestMimeTypeAndBrowserHandling()
           
 
Method Summary
protected  String gunzipContent(byte[] content, String mimeType)
           
protected  byte[] gzipContent(String content)
           
 void testUTF8()
           
 void testWebappDoesGzipAndContentIsCorrect()
           
 void testWebappDoesNotGzipWhenClientDoesNotSupportIt()
           
 void testWebappOnlyGzipsCertainMimeTypes()
           
 void testWebappOnlyGzipsCertainMimeTypesForCertainBrowsers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMimeTypeAndBrowserHandling

public TestMimeTypeAndBrowserHandling()
Method Detail

testWebappDoesNotGzipWhenClientDoesNotSupportIt

public void testWebappDoesNotGzipWhenClientDoesNotSupportIt()
                                                     throws IOException
Throws:
IOException

testWebappDoesGzipAndContentIsCorrect

public void testWebappDoesGzipAndContentIsCorrect()
                                           throws IOException
Throws:
IOException

testWebappOnlyGzipsCertainMimeTypes

public void testWebappOnlyGzipsCertainMimeTypes()
                                         throws IOException
Throws:
IOException

testWebappOnlyGzipsCertainMimeTypesForCertainBrowsers

public void testWebappOnlyGzipsCertainMimeTypesForCertainBrowsers()
                                                           throws IOException
Throws:
IOException

testUTF8

public void testUTF8()
              throws IOException
Throws:
IOException

gzipContent

protected byte[] gzipContent(String content)
                      throws IOException
Throws:
IOException

gunzipContent

protected String gunzipContent(byte[] content,
                               String mimeType)
                        throws IOException
Throws:
IOException


Copyright © 2015 Atlassian. All rights reserved.