|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.ws.GrouperServiceJ2ee
public class GrouperServiceJ2ee
Extend the servlet to get user info
Constructor Summary | |
---|---|
GrouperServiceJ2ee()
|
Method Summary | |
---|---|
static void |
assignHttpServlet(HttpServlet httpServlet)
public method to get the http servlet |
void |
destroy()
filter method |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain filterChain)
|
void |
init(FilterConfig arg0)
filter method |
static String |
parameterValue(Map<String,String> paramMap,
HttpServletRequest httpServletRequest,
String key)
get a single parameter value for key. |
static HttpServlet |
retrieveHttpServlet()
public method to get the http servlet |
static HttpServletRequest |
retrieveHttpServletRequest()
public method to get the http servlet request |
static HttpServletResponse |
retrieveHttpServletResponse()
public method to get the http servlet request |
static long |
retrieveRequestStartMillis()
if in request, get the start time |
static Subject |
retrieveSubjectActAs(WsSubjectLookup actAsLookup)
retrieve the subject to act as |
static Subject |
retrieveSubjectLoggedIn()
retrieve the subject logged in to web service If there are four colons, then this is the source and subjectId since overlap in namespace |
static String |
retrieveUserPrincipalNameFromRequest()
retrieve the user principal (who is authenticated) from the (threadlocal) request object |
static boolean |
wssecServlet()
is this a wssec servlet? must have servlet init param |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrouperServiceJ2ee()
Method Detail |
---|
public static long retrieveRequestStartMillis()
public static String parameterValue(Map<String,String> paramMap, HttpServletRequest httpServletRequest, String key)
paramMap
- is the map of params. will get value from here if no request objecthttpServletRequest
- optional. if there, will make sure no dupeskey
- to lookup
public static String retrieveUserPrincipalNameFromRequest()
public static Subject retrieveSubjectLoggedIn()
public static Subject retrieveSubjectActAs(WsSubjectLookup actAsLookup) throws WsInvalidQueryException
actAsLookup
- that the caller wants to act as
WsInvalidQueryException
- if there is a problempublic static HttpServletRequest retrieveHttpServletRequest()
public static HttpServlet retrieveHttpServlet()
public static boolean wssecServlet()
public static void assignHttpServlet(HttpServlet httpServlet)
httpServlet
- is servlet to assignpublic static HttpServletResponse retrieveHttpServletResponse()
public void destroy()
destroy
in interface Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
public void init(FilterConfig arg0) throws ServletException
init
in interface Filter
ServletException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |