org.baswell.routes
Class RequestedMediaType
java.lang.Object
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.
|
Method Summary |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
acceptType
public final java.lang.String acceptType
fileExtension
public final java.lang.String fileExtension
mediaType
public final MediaType mediaType
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object