users@jersey.java.net
[Jersey] Re: Importing headers from a Map into a WebResource instance
This message
: [
Message body
] [ More options (
top
,
bottom
) ]
Related messages
: [
Next message
] [
Previous message
] [
In reply to
]
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]
From
: Christopher Currie <
christopher_at_currie.com
>
Date
: Tue, 2 Aug 2011 09:57:33 -0700
On Tue, Aug 2, 2011 at 9:23 AM, David Karam <dskaram_at_gmail.com> wrote:
>
http://stackoverflow.com/questions/6778950/jersey-rest-importing-headers-from-a-map-into-a-webresource-instance
>
Your proposed solution:
WebResource.Builder builder = webResource.getRequestBuilder();
for(Map.Entry<String, String> headersMapEntry : headersMap.entrySet()){
builder = builder.header(
headersMapEntry.getKey(), headersMapEntry.getValue());
}
appears to be correct. How is it not working for you?
Christopher
This message
: [
Message body
]
Next message
:
Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco): "[Jersey] A message body writer for Java type, class com.sun.jersey.multipart.FormDataMultiPart, and MIME media type, multipart/form-data, was not found"
Previous message
:
Pascal Huynh: "[Jersey] Premature EOF on clientResponse.getEntity()"
In reply to
:
David Karam: "[Jersey] Importing headers from a Map into a WebResource instance"
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]