org.apache.shiro.session.mgt.SessionKey Java Examples
The following examples show how to use
org.apache.shiro.session.mgt.SessionKey.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public void setTimeout(SessionKey key, long maxIdleTimeInMillis) { try{ super.setTimeout(key, maxIdleTimeInMillis); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #2
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public void touch(SessionKey key) { try{ super.touch(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #3
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public String getHost(SessionKey key) { try{ return super.getHost(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #4
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public Collection<Object> getAttributeKeys(SessionKey key) { try{ return super.getAttributeKeys(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #5
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public Object getAttribute(SessionKey sessionKey, Object attributeKey) { try{ return super.getAttribute(sessionKey, attributeKey); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #6
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) { try{ super.setAttribute(sessionKey, attributeKey, value); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #7
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public Object removeAttribute(SessionKey sessionKey, Object attributeKey) { try{ return super.removeAttribute(sessionKey, attributeKey); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #8
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public void stop(SessionKey key) { try{ super.stop(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #9
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public void checkValid(SessionKey key) { try{ super.checkValid(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #10
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
protected Session retrieveSession(SessionKey sessionKey) { try{ return super.retrieveSession(sessionKey); }catch (UnknownSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #11
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public Date getStartTimestamp(SessionKey key) { try{ return super.getStartTimestamp(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #12
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public Date getLastAccessTime(SessionKey key) { try{ return super.getLastAccessTime(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #13
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public long getTimeout(SessionKey key){ try{ return super.getTimeout(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return 0; } }
Example #14
Source File: SessionManager.java From easyweb with Apache License 2.0 | 5 votes |
public void setTimeout(SessionKey key, long maxIdleTimeInMillis) { try{ super.setTimeout(key, maxIdleTimeInMillis); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #15
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public void touch(SessionKey key) { try{ super.touch(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #16
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public String getHost(SessionKey key) { try{ return super.getHost(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #17
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public Collection<Object> getAttributeKeys(SessionKey key) { try{ return super.getAttributeKeys(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #18
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public Object getAttribute(SessionKey sessionKey, Object attributeKey) { try{ return super.getAttribute(sessionKey, attributeKey); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #19
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) { try{ super.setAttribute(sessionKey, attributeKey, value); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #20
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public Object removeAttribute(SessionKey sessionKey, Object attributeKey) { try{ return super.removeAttribute(sessionKey, attributeKey); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 return null; } }
Example #21
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public void stop(SessionKey key) { try{ super.stop(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #22
Source File: SessionManager.java From Shop-for-JavaWeb with MIT License | 5 votes |
public void checkValid(SessionKey key) { try{ super.checkValid(key); }catch (InvalidSessionException e) { // 获取不到SESSION不抛出异常 } }
Example #23
Source File: HttpRequestSessionManager.java From usergrid with Apache License 2.0 | 5 votes |
@Override public Session getSession( SessionKey key ) throws SessionException { if ( !WebUtils.isHttp( key ) ) { String msg = "SessionKey must be an HTTP compatible implementation."; throw new IllegalArgumentException( msg ); } HttpServletRequest request = WebUtils.getHttpRequest( key ); return ( Session ) request.getAttribute( REQUEST_ATTRIBUTE_KEY ); }
Example #24
Source File: OnlineWebSessionManager.java From es with Apache License 2.0 | 5 votes |
@Override public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException { super.setAttribute(sessionKey, attributeKey, value); if (value != null && needMarkAttributeChanged(attributeKey)) { OnlineSession s = (OnlineSession) doGetSession(sessionKey); s.markAttributeChanged(); } }
Example #25
Source File: OnlineWebSessionManager.java From es with Apache License 2.0 | 5 votes |
@Override public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException { Object removed = super.removeAttribute(sessionKey, attributeKey); if (removed != null) { OnlineSession s = (OnlineSession) doGetSession(sessionKey); s.markAttributeChanged(); } return removed; }
Example #26
Source File: AbstractIamSessionManager.java From super-cloudops with Apache License 2.0 | 5 votes |
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) { try { super.setAttribute(sessionKey, attributeKey, value); } catch (InvalidSessionException e) { // Ignore exceptions } }
Example #27
Source File: OnlineWebSessionManager.java From supplierShop with MIT License | 5 votes |
@Override public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException { Object removed = super.removeAttribute(sessionKey, attributeKey); if (removed != null) { OnlineSession s = getOnlineSession(sessionKey); s.markAttributeChanged(); } return removed; }
Example #28
Source File: OnlineWebSessionManager.java From ruoyiplus with MIT License | 5 votes |
@Override public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException { super.setAttribute(sessionKey, attributeKey, value); if (value != null && needMarkAttributeChanged(attributeKey)) { OnlineSession s = (OnlineSession) doGetSession(sessionKey); s.markAttributeChanged(); } }
Example #29
Source File: OnlineWebSessionManager.java From ruoyiplus with MIT License | 5 votes |
@Override public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException { Object removed = super.removeAttribute(sessionKey, attributeKey); if (removed != null) { OnlineSession s = (OnlineSession) doGetSession(sessionKey); s.markAttributeChanged(); } return removed; }
Example #30
Source File: AbstractIamSessionManager.java From super-cloudops with Apache License 2.0 | 5 votes |
protected Session retrieveSession(SessionKey sessionKey) { try { return super.retrieveSession(sessionKey); } catch (UnknownSessionException e) { // Failure to obtain SESSION does not throw an exception return null; } }