Java 类javax.servlet.http.HttpSessionContext 实例源码

项目:spring-session    文件:SessionRepositoryFilterTests.java   
@Test
public void doFilterSessionContext() throws Exception {
    doFilter(new DoInFilter() {
        @Override
        public void doFilter(HttpServletRequest wrappedRequest) {
            HttpSessionContext sessionContext = wrappedRequest.getSession()
                    .getSessionContext();
            assertThat(sessionContext).isNotNull();
            assertThat(sessionContext.getSession("a")).isNull();
            assertThat(sessionContext.getIds()).isNotNull();
            assertThat(sessionContext.getIds().hasMoreElements()).isFalse();

            try {
                sessionContext.getIds().nextElement();
                fail("Expected Exception");
            }
            catch (NoSuchElementException ignored) {
            }
        }
    });
}
项目:tomee    文件:HttpSessionImpl.java   
@Override
public HttpSessionContext getSessionContext() {
    touch();
    final SessionManager component = SystemInstance.get().getComponent(SessionManager.class);
    return new HttpSessionContext() {
        @Override
        public javax.servlet.http.HttpSession getSession(final String sessionId) {
            final HttpSessionEvent event = component.findSession(sessionId);
            return event == null ? null : event.getSession();
        }

        @Override
        public Enumeration<String> getIds() {
            return Collections.enumeration(component.findSessionIds());
        }
    };
}
项目:lams    文件:StandardSession.java   
/**
 * Return the session context with which this session is associated.
 *
 * @deprecated As of Version 2.1, this method is deprecated and has no
 *  replacement.  It will be removed in a future version of the
 *  Java Servlet API.
 */
public HttpSessionContext getSessionContext() {

    if (sessionContext == null)
        sessionContext = new StandardSessionContext();
    return (sessionContext);

}
项目:jerrydog    文件:StandardSession.java   
/**
 * Return the session context with which this session is associated.
 *
 * @deprecated As of Version 2.1, this method is deprecated and has no
 *  replacement.  It will be removed in a future version of the
 *  Java Servlet API.
 */
public HttpSessionContext getSessionContext() {

    if (sessionContext == null)
        sessionContext = new StandardSessionContext();
    return (sessionContext);

}
项目:HowTomcatWorks    文件:StandardSession.java   
/**
 * Return the session context with which this session is associated.
 *
 * @deprecated As of Version 2.1, this method is deprecated and has no
 *  replacement.  It will be removed in a future version of the
 *  Java Servlet API.
 */
public HttpSessionContext getSessionContext() {

    if (sessionContext == null)
        sessionContext = new StandardSessionContext();
    return (sessionContext);

}
项目:couchbase-lite-java-listener    文件:Serve.java   
AcmeSession(String id, int inactiveInterval, ServletContext servletContext, HttpSessionContext sessionContext) {
    // new
    // Exception("Session created with: "+servletContext).printStackTrace();
    // //!!!
    createTime = System.currentTimeMillis();
    this.id = id;
    this.inactiveInterval = inactiveInterval;
    this.servletContext = servletContext;
    this.sessionContext = sessionContext;
}
项目:vraptor4    文件:HttpSessionMock.java   
@Override
public HttpSessionContext getSessionContext() {
    return new HttpSessionContext() {
        @Override
        public HttpSession getSession(String s) {
            return HttpSessionMock.this;
        }

        @Override
        public Enumeration<String> getIds() {
            return new Enumeration<String>() {
                private boolean hasNext = true;

                @Override
                public boolean hasMoreElements() {
                    return hasNext;
                }

                @Override
                public String nextElement() {
                    hasNext = false;
                    return getId();
                }
            };
        }
    };
}
项目:session-share    文件:SessionImpl.java   
@Override
public HttpSessionContext getSessionContext() {
    return null;
}
项目:InComb    文件:TestHttpSession.java   
@Override
public HttpSessionContext getSessionContext() {
    return null;
}
项目:jboot    文件:JbootSessionWapperBase.java   
@Override
public HttpSessionContext getSessionContext() {
    throw new RuntimeException("getSessionContext method not finished.");
}
项目:tasfe-framework    文件:HttpSessionImpl.java   
@SuppressWarnings("deprecation")
@Override
public HttpSessionContext getSessionContext() {
    throw new IllegalStateException("As of Version 2.1, this method is deprecated and has no replacement.");
}
项目:oscm    文件:HttpSessionStub.java   
public HttpSessionContext getSessionContext() {
    throw new UnsupportedOperationException();
}
项目:lemon    文件:ExpiringSessionHttpSession.java   
public HttpSessionContext getSessionContext() {
    return NOOP_SESSION_CONTEXT;
}
项目:myfaces-trinidad    文件:CheckSerializationConfigurator.java   
public HttpSessionContext getSessionContext()
{
  return _delegate.getSessionContext();
}
项目:convertigo-engine    文件:InternalHttpServletRequest.java   
@Override
public HttpSessionContext getSessionContext() {
    return null;
}
项目:lams    文件:StandardSessionFacade.java   
public HttpSessionContext getSessionContext() {
    return session.getSessionContext();
}
项目:lams    文件:HttpSessionImpl.java   
@Override
public HttpSessionContext getSessionContext() {
    return null;
}
项目:lams    文件:ServletUnitHttpSession.java   
/**
 * @deprecated no replacement.
 **/
public HttpSessionContext getSessionContext() {
    return null;
}
项目:jerrydog    文件:StandardSessionFacade.java   
public HttpSessionContext getSessionContext() {
    return session.getSessionContext();
}
项目:parabuild-ci    文件:ServletUnitHttpSession.java   
/**
 * @deprecated no replacement.
 **/
public HttpSessionContext getSessionContext() {
    return null;
}
项目:simple-session    文件:Session.java   
@Override
public HttpSessionContext getSessionContext() {
    return EMPTY_SESSION_CONTEXT;
}
项目:jaffa-framework    文件:MockHttpServletRequest.java   
/**
 * @deprecated
 */
public HttpSessionContext getSessionContext() {
    return null;
}
项目:jw    文件:JwHttpSession.java   
@Override
public HttpSessionContext getSessionContext() {
    return SessionContext.getSession().getSessionContext();
}
项目:HttpSessionReplacer    文件:RepositoryBackedHttpSession.java   
@Override
public HttpSessionContext getSessionContext() {
  throw new UnsupportedOperationException("getSessionContext() is deprecated");
}
项目:geeMVC-Java-MVC-Framework    文件:MockSession.java   
@Override
public HttpSessionContext getSessionContext() {
    return null;
}
项目:sonar-activedirectory    文件:HttpSessionStub.java   
@Override
public HttpSessionContext getSessionContext() {
  return null;
}
项目:leopard    文件:SessionWrapper.java   
@Override
public HttpSessionContext getSessionContext() {
    throw new UnsupportedOperationException("Not Impl.");
}
项目:OSCAR-ConCert    文件:ProblemCheckFilter.java   
public HttpSessionContext getSessionContext()
{
    return session.getSessionContext();
}
项目:vaadin-vertx-samples    文件:VertxHttpSession.java   
@Override
public HttpSessionContext getSessionContext() {
    throw new UnsupportedOperationException("Deprecated");
}
项目:puzzle    文件:HttpSessionWrapper.java   
@Override
public HttpSessionContext getSessionContext() {
    return delegate.getSessionContext();
}
项目:aws-serverless-java-container    文件:AwsHttpSession.java   
@Override
@Deprecated
public HttpSessionContext getSessionContext() {
    throw new UnsupportedOperationException("Session context is deprecated and no longer supported");
}
项目:RedisHttpSession    文件:RedisHttpSession.java   
@Override
public HttpSessionContext getSessionContext() {
    return null;
}
项目:sonar-scanner-maven    文件:MockHttpSession.java   
public HttpSessionContext getSessionContext() {
    throw new UnsupportedOperationException();
}
项目:JAADAS    文件:DummyHttpSession.java   
@Override
public HttpSessionContext getSessionContext() {
    // TODO Auto-generated method stub
    return null;
}
项目:hazelcast-wm    文件:HazelcastHttpSession.java   
@Deprecated
@SuppressWarnings("deprecation")
public HttpSessionContext getSessionContext() {
    return originalSession.getSessionContext();
}
项目:nomulus    文件:FakeHttpSession.java   
@Override
public HttpSessionContext getSessionContext() {
  throw new UnsupportedOperationException();
}
项目:OpenCyclos    文件:HttpSessionWrapper.java   
@Override
public HttpSessionContext getSessionContext() {
    return wrapped.getSessionContext();
}
项目:HttpSessionStore    文件:RedisSessionProxy.java   
public HttpSessionContext getSessionContext() {
    return null;
}
项目:eid-applet    文件:HttpTestSession.java   
public HttpSessionContext getSessionContext() {
    return null;
}
项目:development    文件:HttpSessionStub.java   
public HttpSessionContext getSessionContext() {
    throw new UnsupportedOperationException();
}