Examples of SessionContainer


Examples of anvil.session.SessionContainer

 

  public SessionContainer createContainer()
  {
    try {
      SessionContainer container = (SessionContainer)Class.forName(_provider).newInstance();
      container.initialize(getParent());
      return container;
    } catch (ConfigurationError e) {
      e.fillInStackTrace();
      throw e;
    } catch (Throwable t) {
View Full Code Here

Examples of anvil.session.SessionContainer

    _request = request;
    _response = response;
    _output = new OutputStreamProxy(_response);
    String session_id = adapter.getSession();
    if (session_id != null) {
      SessionContainer container = _address.getZone().getSessionContainer();
      if (container != null) {
        _session = container.getSession(session_id);
        if (_session != null) {
          String citizen =_session.getCitizen();
          if (citizen != null) {
            Realm realm = _address.getZone().getAuthorization().getRealm();
            if (realm != null) {
View Full Code Here

Examples of anvil.session.SessionContainer

  }


  public Session getSession(String session_id)
  {
    SessionContainer container = getZone().getSessionContainer();
    if (container != null) {
      return container.getSession(session_id);
    } else {
      return null;
    }
  }
View Full Code Here

Examples of anvil.session.SessionContainer

  }


  public Session createSession()
  {
    SessionContainer container = getZone().getSessionContainer();
    if (container != null) {
      SessionPreferences prefs = getZone().getSessionPreferences();
      return container.createSession(prefs.getLifetime(), prefs.getTimeout());
    } else {
      return null;
    }
  }
View Full Code Here

Examples of com.san.my.framework.SessionContainer

  public String intercept(ActionInvocation invocation) throws Exception {
    // TODO Login validation - exclude for image requests     
    final ActionContext context = invocation.getInvocationContext ();
      HttpServletRequest request = (HttpServletRequest) context.get(StrutsStatics.HTTP_REQUEST);
      HttpSession session =  request.getSession (true);
      SessionContainerHolder.setSessionContainerToThreadContext(new SessionContainer(session));

    return invocation.invoke();
  }
View Full Code Here

Examples of com.san.my.framework.SessionContainer

        System.out.println("IN LOGIN FILTER..........."+((HttpServletRequest)request).getRequestURI());
    //logger.debug("begin doFilter()...");
    HttpServletRequest hreq = (HttpServletRequest) request;
    HttpSession session = hreq.getSession();
    HttpServletResponse hres = (HttpServletResponse) response;
    SessionContainer regSession = new SessionContainer(session);
       
    // don't intercept logout, timeout, error and asset requests
    String contextPath = hreq.getContextPath();
    String requestURI = hreq.getRequestURI();
    if (requestURI.endsWith(".gif") || requestURI.endsWith(".jpg")
View Full Code Here

Examples of it.eng.spago.base.SessionContainer

  private void modifyObjMetadata(SourceBean serviceRequest, String mod, SourceBean serviceResponse)
    throws EMFUserError, SourceBeanException {
   
    try {
      RequestContainer reqCont = getRequestContainer();
      SessionContainer sessCont = reqCont.getSessionContainer();
      SessionContainer permSess = sessCont.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile)permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
      
      IObjMetadataDAO dao=DAOFactory.getObjMetadataDAO();
      dao.setUserProfile(profile);
     
      ObjMetadata metaNew = recoverObjMetadataDetails(serviceRequest);
View Full Code Here

Examples of org.g4studio.common.util.SessionContainer

   *
   * @param form
   * @param obj
   */
  protected SessionContainer getSessionContainer(HttpServletRequest request) {
    SessionContainer sessionContainer = (SessionContainer) this.getSessionAttribute(request, "SessionContainer");
    if (sessionContainer == null) {
      sessionContainer = new SessionContainer();
      HttpSession session = request.getSession(true);
      session.setAttribute("SessionContainer", sessionContainer);
    }
    return sessionContainer;
  }
View Full Code Here

Examples of org.jboss.ejb3.session.SessionContainer

      assert beanContext != null : "beanContext is null";
      assert businessInterface != null : "businessInterface is null";
     
      StatefulBeanContext ctx = (StatefulBeanContext) beanContext;
     
      SessionContainer container = ctx.getContainer();
      assert container == this : "beanContext not of this container (" + container + " != " + this + ")";
     
      boolean isRemote = false;
      boolean found = false;
      Class<?>[] remoteInterfaces = ProxyFactoryHelper.getRemoteAndBusinessRemoteInterfaces(this);
View Full Code Here

Examples of org.jboss.ejb3.session.SessionContainer

   private Class<?>[] getInterfacesForProxy(ProxyAccessType accessType, SpecificationInterfaceType specType)
   {

      // Initialize
      Set<Class<?>> interfaces = new HashSet<Class<?>>();
      SessionContainer container = this.getContainer();

      // Initialize array of interfaces
      Set<Class<?>> intfs = new HashSet<Class<?>>();

      // If Local
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.