On 05/04/13 17:17, harrisgilliam wrote:
It is not a form... the query parameters are available in the resource
class.. ie: they are injected into the parameters of the methods annotated
with @GET
Is there a way to configure LoggingFeature without using Spring? I have a
requirement that I cannot use Spring.
I am configuring the providers in my openejb-jar.xml file. Will this work?
<?xml version="1.0"?>
<openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1">
<pojo-deployment
class-name="com.scholastic.education.s3.core.comm.director.webapp.DirectorResource">
<properties>
cxf.jaxrs.providers=com.scholastic.education.s3.core.comm.common.jaxrs.StandardJSONProvider,com.scholastic.education.s3.core.comm.common.cxf.JSPProvider
cxf.jaxrs.features=logging
</properties>
</pojo-deployment>
</openejb-jar>
I guess "cxf.jaxrs.features=org.apache.cxf.feature.LoggingFeature" or
"cxf.jaxrs.in.interceptors=org.apache.cxf.interceptor.LoggingInInterceptor"
should do it,
this can also be simplified with the annotations, adding
"@org.apache.cxf.annotations.Logging" to the root resource class should do
NOTE: com.scholastic.education.s3.core.comm.common.cxf.JSPProvider is
RequestDispatcherProvider modified with extra debugging statements.
OK. FYI, I've double checked that the query parameters are available to
response filters, example, see
http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/FormatResponseHandler.java
I've just put a breakpoint there and it was hit, when using
@MessageContext or directly @UriInfo.
Can you also do few more checks:
- are any other of UriInfo properties (those also set from the provider)
available as HTTP attributes ?
- in your modified provider, do
"System.out.println(org.apache.cxf.phase.PhaseInterceptorChain.getCurrentMessage().getExchange().getInMessage()
.get(org.apache.cxf.message.Message.QUERY_STRING));" - if the query
is available then it will be printed
Thanks, Sergey
---Harris
--
View this message in context:
http://cxf.547215.n5.nabble.com/RequestDispatcherProvider-not-saving-QueryParameters-in-HttpServletRequest-tp5725789p5725910.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com