1 18 19 package org.apache.roller.ui.rendering.util; 20 21 import java.util.Locale ; 22 import javax.servlet.http.HttpServletRequest ; 23 24 25 36 public abstract class ParsedRequest { 37 38 HttpServletRequest request = null; 39 40 private String language = null; 41 private String authenticUser = null; 42 43 44 ParsedRequest() {} 45 46 47 53 public ParsedRequest(HttpServletRequest request) throws InvalidRequestException { 54 55 this.request = request; 57 58 java.security.Principal prince = request.getUserPrincipal(); 60 if(prince != null) { 61 this.authenticUser = prince.getName(); 62 } 63 64 } 65 66 67 public String getAuthenticUser() { 68 return this.authenticUser; 69 } 70 71 72 public boolean isLoggedIn() { 73 return (this.authenticUser != null); 74 } 75 76 } 77 | Popular Tags |