You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "stefan stieglitz (JIRA)" <ji...@apache.org> on 2007/05/19 10:13:16 UTC

[jira] Created: (AXIS2-2688) Hand over HttpMethodParams to Commons HttpMethod objects

Hand over HttpMethodParams to Commons HttpMethod objects
--------------------------------------------------------

                 Key: AXIS2-2688
                 URL: https://issues.apache.org/jira/browse/AXIS2-2688
             Project: Axis 2.0 (Axis2)
          Issue Type: Wish
          Components: kernel
    Affects Versions: nightly
            Reporter: stefan stieglitz


In order to use Axis2 in a production setup, the user needs more control over the way http requests are performed. Among other things there must be a mechanism to customize the exception handling of the http client. The commons http client project provides this with the HttpMethodParams object. It would be useful to republish the method options defined by this object as axis2 options or at least to provide a way to specify a custom HttpMethodParams instance for example in the message context. 
I suppose there is a need for more message control with other transport mechanism too, though I did not check this.

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2688) Hand over HttpMethodParams to Commons HttpMethod objects

Posted by "Detelin Yordanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611149#action_12611149 ] 

Detelin Yordanov commented on AXIS2-2688:
-----------------------------------------

Hi,
  We also need some means to control the http send in our project. One recent requirement, for example, is to be able to specify connection retries.
It's really very simple to add some code that checks for HttpMethodParams in the MessageContext and, if found, copies them (or some of them) to the HttpClient's ones. 
Other solution would be to provide a callback mechanism so that users can get the HttpClient instance and tweak it the way they like (currently
it's being cached in the message context, and should be possible to modify it for subsequent requests, but not for the first one).

> Hand over HttpMethodParams to Commons HttpMethod objects
> --------------------------------------------------------
>
>                 Key: AXIS2-2688
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2688
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>    Affects Versions: nightly
>            Reporter: stefan stieglitz
>            Assignee: Saminda Wishwajith Abeyruwan
>
> In order to use Axis2 in a production setup, the user needs more control over the way http requests are performed. Among other things there must be a mechanism to customize the exception handling of the http client. The commons http client project provides this with the HttpMethodParams object. It would be useful to republish the method options defined by this object as axis2 options or at least to provide a way to specify a custom HttpMethodParams instance for example in the message context. 
> I suppose there is a need for more message control with other transport mechanism too, though I did not check this.

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2688) Hand over HttpMethodParams to Commons HttpMethod objects

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

Nandana Mihindukulasooriya resolved AXIS2-2688.
-----------------------------------------------

    Resolution: Fixed

Fixed in revision: 684778. Now a HttpMethodParams instance can be passed to the Commons HttpClient using the code given below. 

ServiceClient sc = ....
HttpMethodParams params = new HttpMethodParams();
sc.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.HTTP_METHOD_PARAMS, params);

regards,
nandana

Just for the record : Parameter which can be passed via HttpMethodParams can be found here.
http://hc.apache.org/httpclient-3.x/preference-api.html#HTTP_method_parameters

> Hand over HttpMethodParams to Commons HttpMethod objects
> --------------------------------------------------------
>
>                 Key: AXIS2-2688
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2688
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>    Affects Versions: nightly
>            Reporter: stefan stieglitz
>            Assignee: Saminda Wishwajith Abeyruwan
>
> In order to use Axis2 in a production setup, the user needs more control over the way http requests are performed. Among other things there must be a mechanism to customize the exception handling of the http client. The commons http client project provides this with the HttpMethodParams object. It would be useful to republish the method options defined by this object as axis2 options or at least to provide a way to specify a custom HttpMethodParams instance for example in the message context. 
> I suppose there is a need for more message control with other transport mechanism too, though I did not check this.

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-2688) Hand over HttpMethodParams to Commons HttpMethod objects

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

Davanum Srinivas reassigned AXIS2-2688:
---------------------------------------

    Assignee: Saminda Wishwajith Abeyruwan

> Hand over HttpMethodParams to Commons HttpMethod objects
> --------------------------------------------------------
>
>                 Key: AXIS2-2688
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2688
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>    Affects Versions: nightly
>            Reporter: stefan stieglitz
>         Assigned To: Saminda Wishwajith Abeyruwan
>
> In order to use Axis2 in a production setup, the user needs more control over the way http requests are performed. Among other things there must be a mechanism to customize the exception handling of the http client. The commons http client project provides this with the HttpMethodParams object. It would be useful to republish the method options defined by this object as axis2 options or at least to provide a way to specify a custom HttpMethodParams instance for example in the message context. 
> I suppose there is a need for more message control with other transport mechanism too, though I did not check this.

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org