How can I identify the resource media type in RESTlet2, I tried following in my class extended from ServerResource
@Get
public Object onGET(){
System.out.println("=================");
System.out.println(this.getRequestEntity().getMediaType());
...
It prints a null when I do any request. I want to get the list of all Accept media types in header.