Hello,

I'm using pax-web-extender-whiteboard 7.2.4 and my servlet filter is 
annotated as below:
@Component(
service = Filter.class,
scope = ServiceScope.PROTOTYPE,
property = {
"osgi.http.whiteboard.filter.pattern=" + PathConstants.ROOT_PATH  + "*",
"osgi.http.whiteboard.context.select=(osgi.http.whiteboard.context.name=WebviewerServletContextHelper)",
"osgi.http.whiteboard.filter.asyncSupported=true",
Constants.SERVICE_RANKING + ":Integer=1",
HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_INIT_PARAM_PREFIX + 
"excludedUrls=" + PathConstants.ZKCOMET_PATH
}
)
public final class AuthenticationFilterForWebViewer implements Filter {

   public void init(FilterConfig filterConfig) throws ServletException {
String excludePattern = filterConfig.getInitParameter("excludedUrls"); 
//$NON-NLS-1$
                .....
}
}

But in the init method, i got null when using 
filterConfig.getInitParameter("excludedUrls"). But if i use 
filterConfig.getInitParameter(HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_INIT_PARAM_PREFIX
 
+ "excludedUrls") then i got the value. Is this a known bug since my 
understand from http whoteboard R6 is that i can get the value from 
FilterConfig without the filter.init prefix ?

Thai

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/7437580c-041a-4fa8-ba18-39836f4d3c30%40googlegroups.com.

Reply via email to