Hi Sergey,
I was planning on setting a response header (Last-Modified, expires,
cache-control etc) in an extended AtomFeedProvider based on the Feed
updated data,
for example:
public class AtomFeedProvider extends
org.apache.cxf.jaxrs.provider.AtomFeedProvider {
@Override
public void writeTo(Feed feed, Class<?> clazz, Type type,
Annotation[] a, MediaType mt, MultivaluedMap<String, Object> headers,
OutputStream os) throws IOException {
headers.add("Last-Modified", feed.getUpdated());
super.writeTo(feed, clazz, type, a, mt, headers, os);
}
}
However, in the source
org.apache.cxf.jaxrs.provider.AtomFeedProvider.writeTo() method the
headers are ignored (lost).
Is this the correct approach I am taking to add headers, or is this a
bug, or is there a better way ?
Thanks
Paul
This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of the BBC unless specifically stated. If you
have received it in error, please delete it from your system. Do not use, copy
or disclose the information in any way nor act in reliance on it and notify the
sender immediately.
Please note that the BBC monitors e-mails sent or received. Further
communication will signify your consent to this
This e-mail has been sent by one of the following wholly-owned subsidiaries of
the BBC:
BBC Worldwide Limited, Registration Number: 1420028 England, Registered
Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
BBC World News Limited, Registration Number: 04514407 England, Registered
Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
BBC World Distribution Limited, Registration Number: 04514408, Registered
Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ