📄 httpsessionfactory.java
字号:
/*
* HttpSessionFactory.java
*
* Created on 2002/01/07, 15:58
*/
package jp.co.intra_mart.framework.base.session;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
/**
* HTTP僙僢僔儑儞偵娭楢偡傞僙僢僔儑儞僼傽僋僩儕偱偡丅
*
* @author INTRAMART
* @version 1.0
* @deprecated 偙偺僋儔僗偼屳姺惈偺偨傔偵巆偝傟偰偄傑偡丅HttpSession傪捈愙棙梡偡傞傛偆偵偟偰偔偩偝偄丅
*/
public class HttpSessionFactory implements SessionFactory {
/**
* HttpSessionFactory傪怴婯偵惗惉偟傑偡丅
*/
public HttpSessionFactory() {
}
/**
* 僙僢僔儑儞僆僽僕僃僋僩傪怴婯偵惗惉偟傑偡丅
* {@link HttpSessionObject}傪惗惉偟傑偡丅
*
* @param request 儕僋僄僗僩
* @return 僙僢僔儑儞僆僽僕僃僋僩
* @throws SessionFactoryException 僙僢僔儑儞僆僽僕僃僋僩偺庢摼偵幐攕
* @see HttpSessionObject
*/
public SessionObject createSessionObject(ServletRequest request) throws SessionFactoryException {
return new HttpSessionObject(((HttpServletRequest)request).getSession());
}
/**
* 僙僢僔儑儞忣曬傪URL偵娷傔偰僄儞僐乕僪偡傞昁梫偑偁傞偐偳偆偐挷傋傑偡丅
*
* @return 僄儞僐乕僪偑昁梫側応崌true丄偦偆偱側偄応崌false
*/
public boolean isEncodeRequired() {
return true;
}
/**
* 僙僢僔儑儞ID傪僄儞僐乕僪偟偰URL偵捛壛偟傑偡丅
* 捛壛偝傟傞撪梕偼僙僢僔儑儞僆僽僕僃僋僩偺幚憰偵埶懚偟傑偡丅
*
* @param request 儕僋僄僗僩
* @param response 儗僗億儞僗
* @param url 儕僋僄僗僩偺URL
* @return 僙僢僔儑儞ID偑斀塮偝傟偨URL
* @throws SessionFactoryException URL偺惗惉帪偵椺奜偑敪惗
*/
public String encodeURL(ServletRequest request, ServletResponse response, String url) throws SessionFactoryException {
return ((HttpServletResponse)response).encodeURL(url);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -