org.eclipse.jetty.server.Request.getRemoteUser()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(215)

本文整理了Java中org.eclipse.jetty.server.Request.getRemoteUser方法的一些代码示例,展示了Request.getRemoteUser的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getRemoteUser方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:getRemoteUser

Request.getRemoteUser介绍

暂无

代码示例

代码示例来源:origin: jphp-group/jphp

  1. @Signature
  2. public String remoteUser() {
  3. return request.getRemoteUser();
  4. }

代码示例来源:origin: i2p/i2p.i2p

  1. String user = request.getRemoteUser();
  2. buf.append((user == null)? " - " : user);
  3. buf.append(" [");

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

  1. @Override
  2. public String getRemoteUser()
  3. {
  4. if(_remoteUser != null)
  5. return _remoteUser;
  6. return super.getRemoteUser();
  7. }

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

  1. public String changeSessionId()
  2. {
  3. HttpSession session = getSession(false);
  4. if (session == null)
  5. throw new IllegalStateException("No session");
  6. if (session instanceof AbstractSession)
  7. {
  8. AbstractSession abstractSession = ((AbstractSession)session);
  9. abstractSession.renewId(this);
  10. if (getRemoteUser() != null)
  11. abstractSession.setAttribute(AbstractSession.SESSION_CREATED_SECURE, Boolean.TRUE);
  12. if (abstractSession.isIdChanged())
  13. _channel.getResponse().addCookie(_sessionManager.getSessionCookie(abstractSession, getContextPath(), isSecure()));
  14. }
  15. return session.getId();
  16. }

代码示例来源:origin: Nextdoor/bender

  1. public String changeSessionId()
  2. {
  3. HttpSession session = getSession(false);
  4. if (session == null)
  5. throw new IllegalStateException("No session");
  6. if (session instanceof AbstractSession)
  7. {
  8. AbstractSession abstractSession = ((AbstractSession)session);
  9. abstractSession.renewId(this);
  10. if (getRemoteUser() != null)
  11. abstractSession.setAttribute(AbstractSession.SESSION_KNOWN_ONLY_TO_AUTHENTICATED, Boolean.TRUE);
  12. if (abstractSession.isIdChanged())
  13. _channel.getResponse().addCookie(_sessionManager.getSessionCookie(abstractSession, getContextPath(), isSecure()));
  14. }
  15. return session.getId();
  16. }

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

  1. public String changeSessionId()
  2. {
  3. HttpSession session = getSession(false);
  4. if (session == null)
  5. throw new IllegalStateException("No session");
  6. if (session instanceof AbstractSession)
  7. {
  8. AbstractSession abstractSession = ((AbstractSession)session);
  9. abstractSession.renewId(this);
  10. if (getRemoteUser() != null)
  11. abstractSession.setAttribute(AbstractSession.SESSION_KNOWN_ONLY_TO_AUTHENTICATED, Boolean.TRUE);
  12. if (abstractSession.isIdChanged())
  13. _channel.getResponse().addCookie(_sessionManager.getSessionCookie(abstractSession, getContextPath(), isSecure()));
  14. }
  15. return session.getId();
  16. }

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

  1. public String changeSessionId()
  2. {
  3. HttpSession session = getSession(false);
  4. if (session == null)
  5. throw new IllegalStateException("No session");
  6. if (session instanceof AbstractSession)
  7. {
  8. AbstractSession abstractSession = ((AbstractSession)session);
  9. abstractSession.renewId(this);
  10. if (getRemoteUser() != null)
  11. abstractSession.setAttribute(AbstractSession.SESSION_KNOWN_ONLY_TO_AUTHENTICATED, Boolean.TRUE);
  12. if (abstractSession.isIdChanged())
  13. _channel.getResponse().addCookie(_sessionManager.getSessionCookie(abstractSession, getContextPath(), isSecure()));
  14. }
  15. return session.getId();
  16. }

代码示例来源:origin: jenkinsci/winstone

  1. @Override
  2. public String changeSessionId()
  3. {
  4. HttpSession session = getSession(false);
  5. if (session == null)
  6. throw new IllegalStateException("No session");
  7. if (session instanceof Session)
  8. {
  9. Session s = ((Session)session);
  10. s.renewId(this);
  11. if (getRemoteUser() != null)
  12. s.setAttribute(Session.SESSION_CREATED_SECURE, Boolean.TRUE);
  13. if (s.isIdChanged() && _sessionHandler.isUsingCookies())
  14. _channel.getResponse().addCookie(_sessionHandler.getSessionCookie(s, getContextPath(), isSecure()));
  15. }
  16. return session.getId();
  17. }

相关文章

Request类方法