Re: Content Disposition is null in multipart form data request

2012-02-27 Thread Pratyush Chandra
So, I figured it out. Maven was picking version 2.2.4 of cxf for webclient. I verified, that it seems to working correctly >= version 2.2.9 Thanks -- View this message in context: http://cxf.547215.n5.nabble.com/Content-Disposition-is-null-in-multipart-form-data-request-tp5512412p5518344.html Se

Re: Content Disposition is null in multipart form data request

2012-02-27 Thread Pratyush Chandra
So, I figured it out. Maven was picking version 2.2.4 of cxf for webclient. I verified, that it seems to working correctly >= version 2.2.9 Thanks -- View this message in context: http://cxf.547215.n5.nabble.com/Content-Disposition-is-null-in-multipart-form-data-request-tp5512412p5518342.html Se

Content Disposition is null in multipart form data request

2012-02-24 Thread Pratyush Chandra
I am trying to send a multipart form data using web client Here is the code : WebClient client = WebClient.create("http://localhost:8080";); client.accept(MediaType.APPLICATION_JSON); client.type(MediaType.MULTIPART_FORM_DATA_TYPE);

Re: Accessing MessageContext and http headers across service layers

2011-05-13 Thread Pratyush Chandra
Hmm..then a good way to have kind of global data in one service request... Thanks a lot ! -- View this message in context: http://cxf.547215.n5.nabble.com/Accessing-MessageContext-and-http-headers-across-service-layers-tp4273158p4394104.html Sent from the cxf-user mailing list archive at Nabble.c

Re: Accessing MessageContext and http headers across service layers

2011-05-13 Thread Pratyush Chandra
Is PhaseInterceptorChain.getCurrentMessage() thread safe ? Also if I do something like, PhaseInterceptorChain.getCurrentMessage().setContent(String.class,"Myname"); i.e set some data in in-interceptor...will be threadsafe and global to access from my code flow..across from wherever i call ? Ph

Re: Accessing MessageContext and http headers across service layers

2011-03-31 Thread Pratyush Chandra
I think i got your point...thanks :) -- View this message in context: http://cxf.547215.n5.nabble.com/Accessing-MessageContext-and-http-headers-across-service-layers-tp4273158p4274741.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Accessing MessageContext and http headers across service layers

2011-03-31 Thread Pratyush Chandra
Message message = PhaseInterceptorChain.getCurrentMessage(); worked like a charm...is it a global throught my service request ? For your 1st approach, I have access to manager class instance in serviceimpl...and dao in manager... I dont know how to inject in subresources ? Can you elaborate more

Accessing MessageContext and http headers across service layers

2011-03-31 Thread Pratyush Chandra
I can inject @Context in my service implementation and get say locale from http headers. I want to pass this information something like this : serviceimpl -> managerimpl -> daoimpl I want locale to be available to managerimpl and daoimpl as well. Is their a way to pass this information to other

Doubt regarding basic http authentication

2011-03-23 Thread Pratyush Chandra
I tried using AuthenticationHandler extending RequestHandler...where i write authentication logic... but I donnot know how to access username in my service implementation So, I tried instead having a ServiceImpl class where I have a : @Context MessageContext mc; public void getInf