BrightSide Workbench Full Report + Source Code
org.turro.elephant.zkoss.SessionResolver Class Reference
Inheritance diagram for org.turro.elephant.zkoss.SessionResolver:
Collaboration diagram for org.turro.elephant.zkoss.SessionResolver:

Public Member Functions

HttpSession getSession (boolean create)
 
HttpServletRequest getRequest ()
 
HttpServletResponse getResponse ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file SessionResolver.java.

Member Function Documentation

◆ getRequest()

HttpServletRequest org.turro.elephant.zkoss.SessionResolver.getRequest ( )

Implements org.turro.elephant.context.ISessionResolver.

Definition at line 49 of file SessionResolver.java.

49  {
50  try {
51  return (HttpServletRequest) ServletFns.getCurrentRequest();
52  } catch(Exception ex) {
53  return null;
54  }
55  }
Here is the caller graph for this function:

◆ getResponse()

HttpServletResponse org.turro.elephant.zkoss.SessionResolver.getResponse ( )

Implements org.turro.elephant.context.ISessionResolver.

Definition at line 58 of file SessionResolver.java.

58  {
59  try {
60  return (HttpServletResponse) ServletFns.getCurrentResponse();
61  } catch(Exception ex) {
62  return null;
63  }
64  }

◆ getSession()

HttpSession org.turro.elephant.zkoss.SessionResolver.getSession ( boolean  create)

Implements org.turro.elephant.context.ISessionResolver.

Definition at line 37 of file SessionResolver.java.

37  {
38  HttpSession ses = null;
39  if(getRequest() != null) {
40  ses = getRequest().getSession(create);
41  }
42  if(ses == null) {
43  ses = (HttpSession) Sessions.getCurrent(create).getNativeSession();
44  }
45  return ses;
46  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: