com.alogient.cameleon.extension.wicket.wicket.response
Class CameleonWebResponse

java.lang.Object
  extended by org.apache.wicket.Response
      extended by org.apache.wicket.protocol.http.WebResponse
          extended by org.apache.wicket.protocol.http.BufferedWebResponse
              extended by com.alogient.cameleon.extension.wicket.wicket.response.CameleonWebResponse

public class CameleonWebResponse
extends org.apache.wicket.protocol.http.BufferedWebResponse

A custom web response used to remove the session_id for the bot. User: jmirc Date: 16/11/10 Time: 2:34 PM


Field Summary
 
Fields inherited from class org.apache.wicket.protocol.http.WebResponse
redirect
 
Constructor Summary
CameleonWebResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
           
 
Method Summary
 CharSequence encodeURL(CharSequence url)
           
static boolean isAgent(String agent)
          Detect if the user-agent is a bot
 
Methods inherited from class org.apache.wicket.protocol.http.BufferedWebResponse
close, filter, redirect, reset, toString, write
 
Methods inherited from class org.apache.wicket.protocol.http.WebResponse
addCookie, clearCookie, configureAjaxRedirect, getHttpServletResponse, getOutputStream, isAjax, isRedirect, setAjax, setAttachmentHeader, setContentLength, setContentType, setDateHeader, setHeader, setLastModifiedTime, setLocale, write
 
Methods inherited from class org.apache.wicket.Response
detectContentType, filter, getCharacterEncoding, println, setCharacterEncoding, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CameleonWebResponse

public CameleonWebResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
Method Detail

encodeURL

public CharSequence encodeURL(CharSequence url)
Overrides:
encodeURL in class org.apache.wicket.protocol.http.WebResponse

isAgent

public static boolean isAgent(String agent)
Detect if the user-agent is a bot

Parameters:
agent - the user-agent info
Returns:
true if the user-agent is a bot


Copyright © 2011 Alogient. All Rights Reserved.