org.tinygroup.weblayer.webcontext.parser.valueparser.impl
类 CookieParserImpl

java.lang.Object
  继承者 org.tinygroup.weblayer.webcontext.parser.valueparser.AbstractValueParser
      继承者 org.tinygroup.weblayer.webcontext.parser.valueparser.impl.CookieParserImpl
所有已实现的接口:
CookieParser, ValueParser

public class CookieParserImpl
extends AbstractValueParser
implements CookieParser

CookieParser是用来解析和添加HTTP请求中的cookies的接口。

注意:CookieParser永远使用ISO-8859-1编码来处理cookie的名称和值。

作者:
renhui

字段摘要
 
从类 org.tinygroup.weblayer.webcontext.parser.valueparser.AbstractValueParser 继承的字段
converter, logger, parameterKeys, parameters, webContext
 
从接口 org.tinygroup.weblayer.webcontext.parser.valueparser.CookieParser 继承的字段
AGE_DELETE, AGE_SESSION
 
构造方法摘要
CookieParserImpl(ParserWebContext webContext)
          从request中创建新的cookies。
 
方法摘要
protected  String getCookieDomain()
          取得cookie的domain。
protected  String getCookiePath()
          取得cookie的path。
 void removeCookie(String name)
          Remove a previously set cookie from the client machine.
 void setCookie(String name, String value)
          Set a cookie that will be stored on the client for the duration of the session.
 void setCookie(String name, String value, int seconds_age)
          Set a persisten cookie on the client that will expire after a maximum age (given in seconds).
 
从类 org.tinygroup.weblayer.webcontext.parser.valueparser.AbstractValueParser 继承的方法
add, add, add, add, add, add, add, add, add, clear, containsKey, convert, get, getBoolean, getBoolean, getByte, getByte, getBytes, getChar, getChar, getCharacterEncoding, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getInts, getInts, getKeys, getLong, getLong, getLongs, getLongs, getObject, getObject, getObjectOfType, getObjectOfType, getObjects, getObjects, getShort, getShort, getString, getString, getStrings, getStrings, getTypeConverter, getValueList, isEmpty, keySet, remove, setObject, setObjects, setProperties, setString, setStrings, size, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.tinygroup.weblayer.webcontext.parser.valueparser.ValueParser 继承的方法
add, add, add, add, add, add, add, add, add, clear, containsKey, get, getBoolean, getBoolean, getByte, getByte, getBytes, getChar, getChar, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getInts, getInts, getKeys, getLong, getLong, getLongs, getLongs, getObject, getObject, getObjectOfType, getObjectOfType, getObjects, getObjects, getShort, getShort, getString, getString, getStrings, getStrings, getTypeConverter, isEmpty, keySet, remove, setObject, setObjects, setProperties, setString, setStrings, size
 

构造方法详细信息

CookieParserImpl

public CookieParserImpl(ParserWebContext webContext)
从request中创建新的cookies。

方法详细信息

setCookie

public void setCookie(String name,
                      String value)
Set a cookie that will be stored on the client for the duration of the session.

指定者:
接口 CookieParser 中的 setCookie

setCookie

public void setCookie(String name,
                      String value,
                      int seconds_age)
Set a persisten cookie on the client that will expire after a maximum age (given in seconds).

指定者:
接口 CookieParser 中的 setCookie

getCookieDomain

protected String getCookieDomain()
取得cookie的domain。

返回:
cookie的domain

getCookiePath

protected String getCookiePath()
取得cookie的path。

返回:
cookie的path

removeCookie

public void removeCookie(String name)
Remove a previously set cookie from the client machine.

指定者:
接口 CookieParser 中的 removeCookie


Copyright © 2006–2014 开源组织. All rights reserved.