You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Steffen Pingel (JIRA)" <ji...@apache.org> on 2007/04/24 00:43:15 UTC

[jira] Created: (HTTPCORE-68) Provide NIO entity

Provide NIO entity
------------------

                 Key: HTTPCORE-68
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-68
             Project: HttpComponents Core
          Issue Type: New Feature
            Reporter: Steffen Pingel


Provide an interface for entities that support event based processing.

Related: https://issues.apache.org/jira/browse/HTTPCORE-43#action_12490185 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCORE-68) Provide NIO entity

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCORE-68:
--------------------------------------

      Description: 
Provide an interface for entities that support event based processing.

Related: HTTPCORE-43 


  was:
Provide an interface for entities that support event based processing.

Related: https://issues.apache.org/jira/browse/HTTPCORE-43#action_12490185 


    Fix Version/s: 4.0-alpha5

This one will not be easy because HttpEntity interface is better suited for the blocking I/O paradigm. Let us see what we can do about it.

Oleg

> Provide NIO entity
> ------------------
>
>                 Key: HTTPCORE-68
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-68
>             Project: HttpComponents Core
>          Issue Type: New Feature
>            Reporter: Steffen Pingel
>             Fix For: 4.0-alpha5
>
>
> Provide an interface for entities that support event based processing.
> Related: HTTPCORE-43 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCORE-68) Provide NIO entity

Posted by "Steffen Pingel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491096 ] 

Steffen Pingel commented on HTTPCORE-68:
----------------------------------------

public interface NHttpEntity extends HttpEntity {

    int consumeContent(ContentDecoder decoder, IOControl ioctrl) throws IOException;

    void produceContent(ContentEncoder encoder, IOControl ioctrl) throws IOException;
}

consume/procduceContent() would be invoked by the service handler from input/outputReady() passing the connection for IO control. That allows for entites that asynchronously read or write data suspending and resuming events as data becomes available.

> Provide NIO entity
> ------------------
>
>                 Key: HTTPCORE-68
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-68
>             Project: HttpComponents Core
>          Issue Type: New Feature
>            Reporter: Steffen Pingel
>
> Provide an interface for entities that support event based processing.
> Related: https://issues.apache.org/jira/browse/HTTPCORE-43#action_12490185 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Resolved: (HTTPCORE-68) Provide NIO entity

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-68.
---------------------------------------

    Resolution: Fixed

Steffen

I could not come up with anything better than a trivial extension to the HttpEntity interface that in addition to all standard methods can represent entity content as ReadableByteChannel.

https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/entity/HttpNIOEntity.java

All other approaches I tried did not seem generic enough to warrant inclusion into the core API. I am very open to alternatives, though. We can revisit this issue around the 4.1 timeframe.

Oleg 

> Provide NIO entity
> ------------------
>
>                 Key: HTTPCORE-68
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-68
>             Project: HttpComponents Core
>          Issue Type: New Feature
>            Reporter: Steffen Pingel
>             Fix For: 4.0-beta1
>
>
> Provide an interface for entities that support event based processing.
> Related: HTTPCORE-43 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCORE-68) Provide NIO entity

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCORE-68:
--------------------------------------

    Fix Version/s:     (was: 4.0-alpha5)
                   4.0-beta1

This will probably have to wait until next release (ALPHA6 or BETA1) as it may take a while to get the API right. I wouldn't like this issue to block ALPHA5 release.

Oleg

> Provide NIO entity
> ------------------
>
>                 Key: HTTPCORE-68
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-68
>             Project: HttpComponents Core
>          Issue Type: New Feature
>            Reporter: Steffen Pingel
>             Fix For: 4.0-beta1
>
>
> Provide an interface for entities that support event based processing.
> Related: HTTPCORE-43 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org