本文整理了Java中javax.servlet.http.HttpSession.getSessionContext()
方法的一些代码示例,展示了HttpSession.getSessionContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpSession.getSessionContext()
方法的具体详情如下:
包路径:javax.servlet.http.HttpSession
类名称:HttpSession
方法名:getSessionContext
暂无
代码示例来源:origin: jfinal/jfinal
public javax.servlet.http.HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: jfinal/jfinal
public javax.servlet.http.HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: spring-projects/spring-session
@Override
public void doFilter(HttpServletRequest wrappedRequest) {
HttpSession session = wrappedRequest.getSession();
session.invalidate();
// no exception
session.getSessionContext();
}
});
代码示例来源:origin: spring-projects/spring-session
@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) {
}
}
});
代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel
/**
* @deprecated As of Bunyan (6.0.x)
*/
@Deprecated
@Override
public HttpSessionContext getSessionContext() {
return _session.getSessionContext();
}
代码示例来源:origin: org.apache.felix/org.apache.felix.http.base
@Override
public HttpSessionContext getSessionContext()
{
// no need to check validity conforming to the javadoc
return this.delegate.getSessionContext();
}
代码示例来源:origin: apache/felix
@Override
public HttpSessionContext getSessionContext()
{
// no need to check validity conforming to the javadoc
return this.delegate.getSessionContext();
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* @deprecated
*/
public HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: edu.internet2.middleware.grouper/grouper-ui
/**
* @return session context
* @see javax.servlet.http.HttpSession
*/
@SuppressWarnings("deprecation")
public javax.servlet.http.HttpSessionContext getSessionContext() {
return this.httpSession.getSessionContext();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.http.servlet
/**@deprecated*/
public javax.servlet.http.HttpSessionContext getSessionContext() {
// Not sure this can be done per context helper and I think null is returned anyway
return session.getSessionContext();
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* @deprecated As of Version 2.1, this method is deprecated and has no
* replacement.
*/
@Override
@Deprecated
public javax.servlet.http.HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: org.dspace/dspace-services-impl
public HttpSessionContext getSessionContext() {
if (this.httpSession != null) {
return this.httpSession.getSessionContext();
}
throw new UnsupportedOperationException("No http session available for this operation");
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* @deprecated
*/
@Override
@Deprecated
public HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* @deprecated As of Version 2.1, this method is deprecated and has no
* replacement.
*/
@Override
@Deprecated
public javax.servlet.http.HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Deprecated
@SuppressWarnings("deprecation")
public HttpSessionContext getSessionContext() {
return originalSession.getSessionContext();
}
代码示例来源:origin: org.jboss.jsfunit/jboss-jsfunit-core
@Deprecated
@Override
public HttpSessionContext getSessionContext()
{
return wrapped.getSessionContext();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* @deprecated
*/
@Override
@Deprecated
public HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* @deprecated As of Version 2.1, this method is deprecated and has no
* replacement.
*/
@Override
@Deprecated
public javax.servlet.http.HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* @deprecated As of Version 2.1, this method is deprecated and has no
* replacement.
*/
@Override
@Deprecated
public javax.servlet.http.HttpSessionContext getSessionContext() {
return session.getSessionContext();
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
public HttpSessionContext getSessionContext() {
return session().getSessionContext();
}
内容来源于网络,如有侵权,请联系作者删除!