検索
全文検索: filter @study:java 11 ヒット , 最終更新: 15年前 uestProcessor%% class를 확장해서 요청처리전에 Cache-Control의 Response
header를 설정함으로써 캐쉬 설정을 할 수 있다. ((스트럿츠 관련 [[study:j... 으로 Servlet Filter를 사용할 수 있다.\\
Servlet의 요청 처리 이전에 response header의 캐쉬 설정을 함으로써 가능해진다.
{{keywords>cache cont... Cache-Control}}
===== ResponseHeaderFilter =====
response header 설정을 가능하게 하는 filter의 예를 소개한다. 컴파일된 소스는 http... ServletException {
HttpServletResponse response =
(HttpServletResponse) res;
// set the rememberme @study:java 9 ヒット , 最終更新: 2週間前 s(HttpServletRequest request, HttpServletResponse response , Authentication authentication)
throws Servlet... r method
super.onAuthenticationSuccess(request, response , authentication);
}
//***** protected method *... s(HttpServletRequest request, HttpServletResponse response , Authentication authentication)
throws IOException, ServletException { ★1
handle(request, response , authentication);
clearAuthenticationAttributes struts @study:java 8 ヒット , 最終更新: 15年前 t(HttpServletRequest request, HttpServletResponse response ) {
if (request.getServletPath().equals("/order/... ed()) {
logger.debug("CACHE ON");
}
response .setHeader("Cache-control", "Public, max-age:1800");
response .setHeader("Expires", "1");
response .setHeader("Pragma", "Cache");
} else {
logger.info( request.getSer rad @study:ejb 4 ヒット , 最終更新: 17年前 t(HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {
</code>
... pServletRequest request,
HttpServletResponse response ) throws ServletException, IOException {
doub... equestDispatcher("/failure.jsp").forward(request, response );
return;
}
try {
... equestDispatcher("/success.jsp").forward(request, response );
} catch (Exception e) {
throw new compress @study:java 2 ヒット , 最終更新: 15年前 er = ((ByteArrayOutputStream)out).toByteArray();
response .setContentType("Content-type: application/zip;");
response .addHeader("Content-Disposition", "attachment; fil logging @study:jsf 2 ヒット , 最終更新: 17年前 doFilter(ServletRequest request, ServletResponse response , FilterChain chain)
throws IOException, Servl... rvletResponse httpResponse = (HttpServletResponse)response ;
HttpSession session = httpRequest.getSession();