openr66.protocol.http
Class HttpWriteCacheEnable

java.lang.Object
  extended by openr66.protocol.http.HttpWriteCacheEnable

public class HttpWriteCacheEnable
extends Object

Utility class to write external file with cache enable properties

Author:
Frederic Bregier

Constructor Summary
HttpWriteCacheEnable()
           
 
Method Summary
static void handleCookies(org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.handler.codec.http.HttpResponse response, String cookieNameToRemove)
          Remove the given named cookie
static void writeFile(org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.channel.Channel channel, String filename, String cookieNameToRemove)
          Write a file, taking into account cache enabled and removing session cookie
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpWriteCacheEnable

public HttpWriteCacheEnable()
Method Detail

writeFile

public static void writeFile(org.jboss.netty.handler.codec.http.HttpRequest request,
                             org.jboss.netty.channel.Channel channel,
                             String filename,
                             String cookieNameToRemove)
Write a file, taking into account cache enabled and removing session cookie

Parameters:
request -
channel -
filename -
cookieNameToRemove -

handleCookies

public static void handleCookies(org.jboss.netty.handler.codec.http.HttpRequest request,
                                 org.jboss.netty.handler.codec.http.HttpResponse response,
                                 String cookieNameToRemove)
Remove the given named cookie

Parameters:
request -
response -
cookieNameToRemove -


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.