Hi,

I am writing an Atom client and would like to POST an <entry> to a collection. I looked at the atom source code, but could not quite work out how this is meant to work.

As far as I can see one needs to do something like this

Request request = new Request(Method.POST, getHref(), member);

where member is a Representation. There does not seem to be any way to set the content of a represenation, though. Should one subclass it to make sure the

  public InputStream getStream() throws IOException
  public ReadableByteChannel getChannel() throws IOException

are implemented? And if so which? If so this should be documented...

Or perhaps I am thinking of this wrong.

Henry


Home page: http://bblfish.net/
Sun Blog: http://blogs.sun.com/bblfish/
Foaf name: http://bblfish.net/people/henry/card#me


Reply via email to