public class CaptchaResourceFilter extends Object implements com.sun.jersey.spi.container.ResourceFilter, com.sun.jersey.spi.container.ContainerRequestFilter
This is a ContainerRequestFilter instance because it was originally intended to be used by Jersey as specified by a CaptchaCheckRequired annotation. However this couldn't be done. See https://atlaseye.atlassian.com/cru/CR-CONF-2852 for more details.
Modifier and Type | Field and Description |
---|---|
static String |
CAPTCHA_HEADER_ID |
static String |
CAPTCHA_HEADER_RESPONSE |
Constructor and Description |
---|
CaptchaResourceFilter(CaptchaManager captchaManager) |
Modifier and Type | Method and Description |
---|---|
com.sun.jersey.spi.container.ContainerRequest |
filter(com.sun.jersey.spi.container.ContainerRequest request) |
void |
filter(javax.servlet.http.HttpServletRequest req) |
void |
filter(String captchaId,
String captchaResponse) |
com.sun.jersey.spi.container.ContainerRequestFilter |
getRequestFilter() |
com.sun.jersey.spi.container.ContainerResponseFilter |
getResponseFilter() |
public static final String CAPTCHA_HEADER_ID
public static final String CAPTCHA_HEADER_RESPONSE
public CaptchaResourceFilter(CaptchaManager captchaManager)
public com.sun.jersey.spi.container.ContainerRequest filter(com.sun.jersey.spi.container.ContainerRequest request)
filter
in interface com.sun.jersey.spi.container.ContainerRequestFilter
public void filter(javax.servlet.http.HttpServletRequest req)
public void filter(String captchaId, String captchaResponse) throws CaptchaCheckFailedException
CaptchaCheckFailedException
public com.sun.jersey.spi.container.ContainerRequestFilter getRequestFilter()
getRequestFilter
in interface com.sun.jersey.spi.container.ResourceFilter
public com.sun.jersey.spi.container.ContainerResponseFilter getResponseFilter()
getResponseFilter
in interface com.sun.jersey.spi.container.ResourceFilter
Copyright © 2003–2020 Atlassian. All rights reserved.