Share

NIO Framework

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

More complex transformations?

You are viewing a single message from this topic. View all messages.

  1. 2009-05-21 19:00:46 UTC
    Hehe. Good luck! If you get it to work, let us know!

    The worst part for me is the additional interface complexity required for classes that want to receive an HTTP Request and return and HTTP Response:

    void processRequestHeader(byte[] header);

    void processRequestContent(byte[] content);

    void noMoreRequestContent();

    I guess it would be simple enough to pass an empty or null byte[] content when the message content is finished, rather than requiring the noMoreRequestContent() method. Effectively the same as ending chunked transfer with a zero-byte chunk :-)

    My current Message interface has 2 fields:

    byte[] header
    InputStream content

    content may be null to indicate that there is no content to be read.

    So I suppose that it actually IS essentially the same level of complexity! :-)
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.