org.baswell.routes
Class RequestedMediaType

java.lang.Object
  extended by org.baswell.routes.RequestedMediaType

public class RequestedMediaType
extends java.lang.Object

The requested media type of an HTTP request. Taken from the either the file extension of the request path if present or the Accept header.


Field Summary
 java.lang.String acceptType
           
 java.lang.String fileExtension
           
 MediaType mediaType
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

acceptType

public final java.lang.String acceptType

fileExtension

public final java.lang.String fileExtension

mediaType

public final MediaType mediaType
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object