Skip to content

Commit 04b6364

Browse files
author
Igor Polevoy
committed
#310 Add support for container-based authentication (isUserInRole())
1 parent bfeee8c commit 04b6364

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

activeweb/src/main/java/org/javalite/activeweb/HttpSupport.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,14 @@ protected int getRequestPort(){
634634
return RequestUtils.getRequestPort();
635635
}
636636

637-
637+
/**
638+
* Direct access to current <code>HttpServletRequest</code> for low level operations.
639+
*
640+
* @return instance of current <code>HttpServletRequest</code>.
641+
*/
642+
protected HttpServletRequest getHttpServletRequest(){
643+
return Context.getHttpRequest();
644+
}
638645

639646
/**
640647
* Returns port on which the of the server received current request.

0 commit comments

Comments
 (0)