public abstract class AgentAwareResource extends BaseResource
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.http.HttpServletRequest |
hreq |
DATE_FORMAT, DATETIME_FORMAT, DEFAULT_USER, log, NAME, NO_CACHE, REF, security, UID, uriInfo
Modifier | Constructor and Description |
---|---|
protected |
AgentAwareResource(org.slf4j.Logger log)
Create a resource capable of logging to the specified logger.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isDataResourceRequested()
Attempts to deduce whether data resource is being requested.
|
protected boolean |
isFull()
Determines whether the request comes from a supported full browser.
|
protected boolean |
isMobile()
Determines whether the request comes from a supported mobile browser.
|
protected boolean |
isMobileResourceRequested()
Attempts to deduce whether mobile URL is being requested.
|
accepted, accepted, created, created, date, datetime, deleted, format, format, getData, getUserName, id, integer, notFound, ok, ok, redirect, ref, safeCamelCase, safeToString, serverError, serviceUnavailableError, setDefaultUserName, sid, tag, tag, tag, uid, uid, url, validate, validate, validate, warn, warn
protected AgentAwareResource(org.slf4j.Logger log)
log
- loggerprotected boolean isMobileResourceRequested()
/m/
in the path.protected boolean isDataResourceRequested()
/rs/
in the path.protected boolean isMobile()
protected boolean isFull()
Copyright © 2015. All Rights Reserved.