Created JamonContext#currentUrl
This commit is contained in:
parent
195bde1e94
commit
5dad3d8318
1 changed files with 2 additions and 0 deletions
|
@ -12,11 +12,13 @@ public class JamonContext {
|
|||
|
||||
private final HttpServletRequest req;
|
||||
public final String contextPath;
|
||||
public final String currentUrl;
|
||||
|
||||
@Inject
|
||||
public JamonContext(HttpServletRequest req) {
|
||||
this.req = req;
|
||||
this.contextPath = req.getContextPath();
|
||||
this.currentUrl = req.getRequestURL().toString();
|
||||
}
|
||||
|
||||
public boolean isLoggedIn() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue