Package org.apache.pivot.util

Examples of org.apache.pivot.util.MIMEType


import org.junit.Test;

public class MIMETypeTest {
    @Test
    public void testMIMEType() {
        MIMEType mimeType = MIMEType.decode("foo; a=123; b=456; c=789");
        assertEquals(mimeType.getBaseType(), "foo");
        assertEquals(mimeType.get("a"), "123");
        assertEquals(mimeType.get("b"), "456");
        assertEquals(mimeType.get("c"), "789");
    }
View Full Code Here

TOP

Related Classes of org.apache.pivot.util.MIMEType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.