axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Closed: (AXISCPP-1068) Support http redirects
Date Sat, 03 Apr 2010 05:25:27 GMT

     [ https://issues.apache.org/jira/browse/AXISCPP-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

nadir amra closed AXISCPP-1068.
-------------------------------

       Resolution: Fixed
    Fix Version/s: current (nightly)

Basically I added support so automatic redirect can be done seamlessly.   The original implementation
would throw a transport exception, but  a client user would not know that a redirect occurs.
 I created a new exception code (SERVER_TRANSPORT_REDIRECT_RECEIVED) to indicate redirect.
 And in the exception data, I put the redirect location so a client can choose to handle it
manually by getting the location URI from the exception. 

I enhanced the transport so that it now supports the following properties (located in include/axis/GDefine.hpp):

ENABLE_AUTOMATIC_REDIRECT    - possible values: "true" or "false".  Default is false. 
MAX_AUTOMATIC_REDIRECT            - integer number  in string format indicating how many redirects
to follow. Default is 1.  If "0" is 
                                                                      specified it is equivalent
to specifying "false" for ENABLE_AUTOMATIC_REDIRECT.

So users can use the Call object to set the above properties.  

If automatic redirect is enabled, automatic redirect will only happen if redirecting from
http:// to http:// or https:// to https://.  Anything else will result in automatic redirect
not being done (exception thrown as if ENABLE_AUTOMATIC_REDIRECT was set to false).

The changes have been made under the following revision:  

http://svn.apache.org/viewvc?view=revision&revision=930475

> Support http redirects
> ----------------------
>
>                 Key: AXISCPP-1068
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1068
>             Project: Axis-C++
>          Issue Type: New Feature
>            Reporter: nadir amra
>             Fix For: current (nightly)
>
>
> Add support for http redirect.

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


Mime
View raw message