org.glassfish.grizzly.http.server.Request.isRequestedSessionIdFromCookie()方法的使用及代码示例

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

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

Request.isRequestedSessionIdFromCookie介绍

暂无

代码示例

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public boolean isRequestedSessionIdFromCookie() {
  6. return request.isRequestedSessionIdFromCookie();
  7. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public boolean isRequestedSessionIdFromCookie() {
  6. return request.isRequestedSessionIdFromCookie();
  7. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public boolean isRequestedSessionIdFromCookie() {
  6. return request.isRequestedSessionIdFromCookie();
  7. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public boolean isRequestedSessionIdFromCookie() {
  6. return request.isRequestedSessionIdFromCookie();
  7. }

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public boolean isRequestedSessionIdFromCookie() {
  6. return request.isRequestedSessionIdFromCookie();
  7. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public boolean isRequestedSessionIdFromCookie() {
  6. return request.isRequestedSessionIdFromCookie();
  7. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. if (session == null)
  22. return (false);
  23. if (request.isRequestedSessionIdFromCookie())
  24. return (false);
  25. return doIsEncodeable(request, session, location);
  26. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: javaee/grizzly

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

  1. /**
  2. * Return <tt>true</tt> if the specified URL should be encoded with
  3. * a session identifier. This will be true if all of the following
  4. * conditions are met:
  5. * <ul>
  6. * <li>The request we are responding to asked for a valid session
  7. * <li>The requested session ID was not received via a cookie
  8. * <li>The specified URL points back to somewhere within the web
  9. * application that is responding to this request
  10. * </ul>
  11. *
  12. * @param location Absolute URL to be validated
  13. */
  14. protected boolean isEncodeable(final String location) {
  15. if (location == null)
  16. return (false);
  17. // Is this an intra-document reference?
  18. if (location.startsWith("#"))
  19. return (false);
  20. final Session session = request.getSession(false);
  21. return (session != null
  22. && !request.isRequestedSessionIdFromCookie()
  23. && doIsEncodeable(request, session, location));
  24. }

相关文章

Request类方法