类 javax.servlet.http.Cookie
的使用

使用 Cookie 的软件包
javax.servlet.http The javax.servlet.http package contains a number of classes and interfaces that describe and define the contracts between a servlet class running under the HTTP protocol and the runtime environment provided for an instance of such a class by a conforming servlet container. 
org.eclipse.jetty.server   
 

javax.servlet.httpCookie 的使用
 

返回 Cookiejavax.servlet.http 中的方法
 Cookie[] HttpServletRequestWrapper.getCookies()
          The default behavior of this method is to return getCookies() on the wrapped request object.
 Cookie[] HttpServletRequest.getCookies()
          Returns an array containing all of the Cookie objects the client sent with this request.
 

参数类型为 Cookiejavax.servlet.http 中的方法
 void HttpServletResponseWrapper.addCookie(Cookie cookie)
          The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object.
 void HttpServletResponse.addCookie(Cookie cookie)
          Adds the specified cookie to the response.
 

org.eclipse.jetty.serverCookie 的使用
 

返回 Cookieorg.eclipse.jetty.server 中的方法
 Cookie[] ServletRequestHttpWrapper.getCookies()
           
 Cookie[] Request.getCookies()
           
 Cookie[] CookieCutter.getCookies()
           
 

参数类型为 Cookieorg.eclipse.jetty.server 中的方法
 void ServletResponseHttpWrapper.addCookie(Cookie cookie)
           
 void Response.addCookie(Cookie cookie)
           
 void Request.setCookies(Cookie[] cookies)
           
 void CookieCutter.setCookies(Cookie[] cookies)
           
 



Copyright © 2013. All Rights Reserved.