HttpRequest¶
-
public class
HttpRequest
extends DefaultFullHttpRequest¶ Class to access the request details. This class inherits from netty’s DefaultFullHttpRequest
See also:
DefaultFullHttpRequest
Fields¶
Methods¶
getStaticFile¶
getStaticUrlResource¶
params¶
path¶
routeMatch¶
-
public RouteMatch
routeMatch
()¶ Application will have no use with this method. this method will be used by the framework internally.
setAnonymousAuth¶
-
public void
setAnonymousAuth
()¶ This method will be used by the framework internally.
setCookieAuth¶
setCookieAuth¶
setExternalAuth¶
setExternalAuth¶
setInternalAuth¶
setRouteMatch¶
-
public void
setRouteMatch
(RouteMatch obj)¶ Application will have no use with this method. this method will be used by the framework internally.
setStaticInfo¶
-
public void
setStaticInfo
(String resource, String file)¶ Though applications can pre-inform the static URL and the way to access the static data through build plugin, there might be some situation which would want to send a static file on a non-static URL. For example, if an application has a static-url prefix as /aalam/base/s/. Suppose the application wants to serve a static file in a URL that does not have a prefix /aalam/base/s/, or if the file is not on the usual place that the framework can find, it can inform the framework about this static resource through this method This method needs to be called in the action handler. By doing so, the framework will take care of sending the response.
Parameters: - resource – A unique name of this resource. This name should not clash with any of the other static resources.
- file – The path to the resource