aerogear-controller 1.0.1

org.jboss.aerogear.controller.router
Class MediaType

java.lang.Object
  extended by org.jboss.aerogear.controller.router.MediaType

public class MediaType
extends Object


Field Summary
static String ANY
           
static MediaType HTML
           
static MediaType JSON
           
static MediaType JSP
           
private  String mediaType
           
private  Class<? extends Responder> responderClass
           
 
Constructor Summary
MediaType(String mediaType, Class<? extends Responder> responderClass)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HTML

public static final MediaType HTML

JSP

public static final MediaType JSP

JSON

public static final MediaType JSON

ANY

public static final String ANY
See Also:
Constant Field Values

mediaType

private final String mediaType

responderClass

private final Class<? extends Responder> responderClass
Constructor Detail

MediaType

public MediaType(String mediaType,
                 Class<? extends Responder> responderClass)
Method Detail

getType

public String getType()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

aerogear-controller 1.0.1

Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.