亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? httpsession.java

?? Java 的servlets和jsp的軟件開發包。支持jsp1.0以及servlet2.1。版本比較舊
?? JAVA
字號:

/*
 * $Id: HttpSession.java,v 1.4 1999/04/20 20:37:49 sahmed Exp $
 * 
 * Copyright (c) 1997-1999 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Sun
 * Microsystems, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sun.
 * 
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 */

package javax.servlet.http;

/**
 *
 * Provides a way to identify a user across more than one page
 * request or visit to a Web site.
 *
 * <p>The servlet engine uses this interface to create a session
 * between an HTTP client and an HTTP server. The session persists
 * for a specified time period, across more than one connection or
 * page request from the user. A session usually corresponds to one 
 * user, who may visit a site many times. The server can maintain a 
 * session either by using cookies or by rewriting URLs.
 *
 * <p>This interface allows servlets to 
 * <ul>
 * <li>View and manipulate information about a session, such as
 * the session identifier, creation time, or context
 * <li>Bind objects to sessions, allowing you to use an
 * online shopping cart
 * to hold data that persists across multiple user connections
 * </ul>
 *
 * <p> <code>HttpSession</code> defines methods that
 * store these types of data:
 * <ul>
 * <li>Standard session properties, such as a session identifier
 * or session context
 * <li>Data that the application provides, accessed using this
 * interface and stored using a dictionary-like interface
 * </ul>
 *
 * <p>The servlet can obtain data from the session, modify it,
 * and return it to the session, as this example shows:
 *
 * <code>
 * //Get the session object - "request" represents the HTTP servlet request
 * HttpSession session = request.getSession(true);
 *
 * //Get the session data value - an Integer object is read from 
 * //the session, incremented, then written back to the session.
 * //sessiontest.counter identifies values in the session
 * Integer ival = (Integer) session.getValue("sessiontest.counter");
 * if (ival==null) 
 *    ival = new Integer(1);
 * else 
 *   ival = new Integer(ival.intValue() + 1);
 * session.putValue("sessiontest.counter", ival);
 * </code>
 *
 * <p>When an application stores an object in or removes it from a
 * session, the session checks whether the object implements
 * {@link HttpSessionBindingListener}. If it does, 
 * the servlet notifies the object that it has been bound to or unbound 
 * from the session.
 * 
 * <p>An HTTP session represents the server's view of the session.
 * The server considers a session new under any of these conditions:
 * <ul>
 * <li>The client does not yet know about the session
 * <li>The session has not yet begun
 * <li>The client chooses not to join the session, for example,
 * if the server supports only cookies and the client rejects the
 * cookies the server sends
 * </ul>
 * When the session is new, the {@link #isNew} method 
 * returns <code>true</code>.
 *
 * <p>You must write your servlet to handle cases in which
 * the client has not joined a session. The following code
 * example calls <code>isNew</code> to determine whether
 * a session is new. If it is, the server requires the client
 * to start a session by directing the client to a welcome
 * page which the user must enter before gaining access to
 * other pages on the site.
 *
 * <code>
 * //Get the session object - "request" represents the HTTP servlet request
 * HttpSession session = request.getSession(true);
 *
 * //insist that the client starts a session
 * //before access to data is allowed
 * //"response" represents the HTTP servlet response
 * if (session.isNew()) {
 *   response.sendRedirect (welcomeURL);
 * }
 * </code>
 *
 *
 * @author	Various
 * @version	$Version$
 *
 *
 * @see 	HttpSessionBindingListener
 * @see 	HttpSessionContext
 *
 */

public interface HttpSession {




    /**
     *
     * Returns the time when this session was created, measured
     * in milliseconds since midnight January 1, 1970 GMT.
     *
     * @return					a <code>long</code> integer specifying
     * 						when this session was created relative
     *						to 1-1-1970 GMT
     *
     * @exception IllegalStateException		if you attempt to get the session's
     *						creation time after the session has
     *						been invalidated
     *
     */

    public long getCreationTime ();
    
    
    
    
    /**
     *
     * Returns a string containing the unique identifier assigned 
     * to this session. The identifier is assigned 
     * by the servlet engine and is implementation dependent.
     * 
     * @return				a string specifying the identifier
     *					assigned to this session
     *
     * @exeption IllegalStateException	if the session is invalid
     *
     */

    public String getId ();
    
    
    

    /**
     *
     * Returns the last time the client sent a request associated with
     * this session, as the number of milliseconds since midnight
     * January 1, 1970 GMT. 
     *
     * <p>Actions that your application takes, such as getting or setting
     * a value associated with the session, do not affect the access
     * time.
     *
     * <p>The last accessed time can help you manage sessions. For example,
     * the sessions can be sorted according to age to optimize some task.
     *
     * @return					a <code>long</code> integer 
     *						representing the last time 
     *						the client sent a request associated 

     *						with this session, expressed in 
     *						milliseconds since 1-1-1970 GMT
     *
     * @exception IllegalStateException		if the session is invalid
     *
     */

    public long getLastAccessedTime ();
    
    
    
   /**
    * Returns the maximum time interval, in seconds, that 
    * the servlet engine will keep this session open between 
    * client requests. You can set the maximum time interval
    * with the <code>setMaxInactiveInterval</code> method.
    *
    *  
    *
    * @return		an integer specifying the number of
    *			seconds this session remains open
    *			between client requests
    *
    * @see		#setMaxInactiveInterval
    *
    *
    */
    

    public int getMaxInactiveInterval();
    
    

   /**
    *
    * @deprecated 	As of Version 2.1, this method is
    *			deprecated and has no replacement.
    *			It will be removed in a future
    *			version of the Java Servlet API.
    *
    */

    public HttpSessionContext getSessionContext ();
    
    
    
    
    /**
     *
     * Returns the object bound with the specified name
     * in this session or null if no object of
     * that name exists.
     *
     * @param name				a string specifying the name of the object
     *
     * @return					the object with the specified name
     *
     * @exception IllegalStateException		if the session is invalid
     *
     */
  
    public Object getValue (String name);
    
    
    

    /**
     *
     * Returns an array containing the names of all the objects
     * bound to this session. This method is useful, for example,
     * when you want to delete all the objects bound to this
     * session.
     *
     * @return					an array of strings specifying the
     *						names of all the objects bound to
     *						this session
     *
     * @exception IllegalStateException		if the session is invalid
     *
     */
    
    public String [] getValueNames();
    
    
    

    /**
     *
     * Invalidates this session and unbinds any objects bound
     * to it.
     *
     * @exception IllegalStateException		if the session is already invalid
     *
     */

    public void invalidate ();
    
    
    
    
    /**
     *
     * Returns <code>true</code> if the Web server has created a session
     * but the client has not yet joined. 
     * For example, if the server used only cookie-based sessions, and
     * the client had disabled the use of cookies, then a session would
     * be new.
     *
     * @return 					<code>true</code> if the 
     *						server has created a session, 
     *						but the client has not yet joined
     *
     * @exception IllegalStateException		if the session is invalid
     *
     *
     */

    public boolean isNew ();
    



    
    /**
     * Binds an object to this session, using the name specified.
     * If an object of the same name is already bound to the session,
     * the object is replaced.
     *
     *
     * @param name				the name to which the object is bound;
     *						cannot be null
     *
     * @param value				the object to be bound; cannot be null
     *
     * @exception IllegalStateException		if the session is invalid
     *
     */
 
    public void putValue (String name, Object value);





    /**
     *
     * Removes the object bound with the specified name from
     * this session. If the session does not have an object
     * bound with the specified name, this method does nothing.
     *
     * <p>After this method executes, and if the object
     * implements <code>HttpSessionBindingListener</code>,
     * the object calls 
     * <code>HttpSessionBindingListener.valueUnbound</code>.
     * 
     * 
     *
     * @param name				the name of the object to
     *						remove from this session
     *
     * @exception IllegalStateException		if the session is invalid
     *
     */

    public void removeValue (String name);
    
    
    

    /**
     *
     * Specifies the maximum length of time, in seconds, that the
     * servlet engine keeps this session if no user requests
     * have been made of the session.
     *
     * @param interval		An integer specifying the number
     * 				of seconds 
     *
     */
    
    public void setMaxInactiveInterval(int interval);

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产高清在线| 国产婷婷色一区二区三区| 成人黄色小视频| 精品在线一区二区| 日韩不卡一二三区| 日韩国产成人精品| 婷婷国产v国产偷v亚洲高清| 一区二区三区丝袜| 亚洲国产日韩一区二区| 亚洲午夜激情网站| 五月婷婷综合网| 午夜精品久久一牛影视| 日本中文一区二区三区| 精品一区二区三区免费播放| 麻豆专区一区二区三区四区五区| 日韩专区在线视频| 久久se这里有精品| 国产不卡视频在线观看| 在线观看区一区二| 91福利国产精品| 欧美日韩精品一区视频| 正在播放亚洲一区| 精品国产乱码久久久久久牛牛| 精品国产乱码久久久久久久久| 国产午夜精品理论片a级大结局| 中文字幕日本不卡| 亚洲国产乱码最新视频 | 岛国av在线一区| 91影视在线播放| 在线91免费看| 久久色.com| 亚洲人妖av一区二区| 亚洲一区二区精品视频| 老司机精品视频一区二区三区| 国产精品综合二区| 色狠狠色狠狠综合| 日韩免费看的电影| 亚洲人妖av一区二区| 蜜臀久久99精品久久久画质超高清| 国产中文一区二区三区| 色哟哟欧美精品| 欧美精品一区二区久久久| 国产精品成人在线观看| 婷婷久久综合九色国产成人| 成人视屏免费看| 日韩一级免费观看| 亚洲成av人片在线观看无码| 成人av午夜电影| 欧美一区二区三区婷婷月色| 午夜激情综合网| 国产一区二区三区美女| 欧美日韩成人一区| 成人免费在线视频观看| 日韩欧美黄色影院| 天天射综合影视| 日韩欧美成人激情| 九九在线精品视频| 亚洲综合男人的天堂| 欧美亚洲国产bt| 日本中文字幕一区二区有限公司| 精品日产卡一卡二卡麻豆| 国产一级精品在线| 亚洲午夜在线观看视频在线| 欧美美女网站色| 国产精品亚洲视频| 午夜精品久久一牛影视| 国产精品免费丝袜| 一本一道综合狠狠老| 免费人成精品欧美精品| 国产欧美精品一区二区色综合 | 亚洲欧美日韩国产综合| 91麻豆精品国产91久久久使用方法 | 99精品视频在线播放观看| 欧美日韩一区二区三区在线看 | 亚洲狼人国产精品| 成人爽a毛片一区二区免费| 久久综合av免费| 久久精品免费观看| 在线成人免费观看| 亚洲综合丝袜美腿| 在线观看视频一区二区欧美日韩| 亚洲免费在线播放| 色综合久久88色综合天天| 一区二区三区视频在线看| 日本福利一区二区| 亚洲综合图片区| 色久优优欧美色久优优| 亚洲一区在线观看网站| 欧美日韩专区在线| 午夜私人影院久久久久| 欧美剧在线免费观看网站| 日韩高清不卡在线| 精品精品国产高清a毛片牛牛| 精品在线观看视频| 欧美国产激情二区三区| 99精品黄色片免费大全| 亚洲一区视频在线观看视频| 欧美日韩一区二区三区高清| 麻豆成人久久精品二区三区红| 久久人人97超碰com| 成人午夜碰碰视频| 一区二区高清在线| 日韩午夜精品电影| 成人午夜免费电影| 天堂成人免费av电影一区| 欧美一级淫片007| 国产福利电影一区二区三区| 亚洲少妇最新在线视频| 欧美一区三区二区| 国产不卡在线视频| 天堂精品中文字幕在线| 国产欧美日韩不卡免费| 欧美日韩综合色| 国产精品亚洲第一区在线暖暖韩国 | 日韩美女视频一区二区在线观看| 国产sm精品调教视频网站| 一区二区三区中文字幕| 精品国产一区二区三区四区四| a美女胸又www黄视频久久| 六月丁香婷婷色狠狠久久| 国产精品久久久久久久久动漫| 91成人免费在线视频| 国产一区欧美二区| 亚洲一区在线播放| 国产精品久久久久影院色老大| 欧美日韩国产一级| 91色|porny| 国产91丝袜在线观看| 日韩一区精品视频| 亚洲综合免费观看高清在线观看| 国产亚洲综合性久久久影院| 欧美裸体bbwbbwbbw| 91香蕉视频污| 成人av电影在线观看| 国产精品自产自拍| 日本成人在线不卡视频| 一区二区三区不卡在线观看| 久久久精品免费免费| 精品人伦一区二区色婷婷| 666欧美在线视频| 91福利国产成人精品照片| 99免费精品在线观看| 国产91精品入口| 国产精品一区二区三区乱码| 老司机免费视频一区二区三区| 亚洲成在线观看| 亚洲综合男人的天堂| 亚洲另类在线制服丝袜| **欧美大码日韩| 中文字幕中文字幕一区二区| 国产亚洲欧美色| 国产欧美一区二区三区在线看蜜臀 | 在线亚洲欧美专区二区| 99re这里只有精品首页| 成人免费看片app下载| 不卡免费追剧大全电视剧网站| 国产成人精品午夜视频免费| 国产成人av电影在线观看| 国产福利91精品一区二区三区| 国产成人精品免费看| 成人av资源下载| 91色综合久久久久婷婷| 在线视频一区二区三| 67194成人在线观看| 精品国产一二三| 国产嫩草影院久久久久| 中文字幕一区不卡| 亚洲一区二区精品3399| 日本成人在线电影网| 国产精品一二三四| 91免费看视频| 欧美久久久久久蜜桃| 欧美大片日本大片免费观看| 久久久久国产精品免费免费搜索| 国产亚洲成年网址在线观看| 国产精品理论片在线观看| 有码一区二区三区| 免费亚洲电影在线| 国产xxx精品视频大全| 一本色道a无线码一区v| 91精品啪在线观看国产60岁| 久久夜色精品国产欧美乱极品| 久久久综合精品| 亚洲精品国产品国语在线app| 亚洲va中文字幕| 国产精品一区二区男女羞羞无遮挡 | 激情国产一区二区 | 亚洲色图一区二区三区| 亚洲a一区二区| 国产精品一二三| 欧美日韩色综合| 久久综合九色综合欧美98| 亚洲欧美电影院| 麻豆成人91精品二区三区| 9i在线看片成人免费| 91精品国产91久久综合桃花| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 欧美影视一区在线| 国产欧美视频一区二区| 午夜电影一区二区三区|