on 11-22-2005 10:58 AM
Hi,
I´m trying to set an HTTP Response Code from a custom login module. Getting HTTP Headers works, so basically the approach is working.
What I do is:
-
-
HttpSetterCallback responseSetterCallback = new HttpSetterCallback();
responseSetterCallback.setType(HttpSetterCallback.RESPONSE_CODE);
responseSetterCallback.setValue("401");
_callbackHandler.handle(new Callback[] );
-
-
When executing on a J2EE 6.40 I get the following error:
-
-
java.lang.IllegalArgumentException: hsc.getType()==8 not yet supportedhsc.getType()==8 not yet supported
-
-
(with Type 8 standing for Response Code)
It looks as if this feature has not been implemented yet (although been described in the SAP documentation). How can I fix this problem, is there any workaround to set the Response Code in another way?
Thanks!
Kind regards,
Daniela
Hi Daniela,
sorry for the late reply - you may have resolved your problem now, but still wanted to follow up on it in case others experience the same.
The support for this type in the callback is available from SP12 on. I guess you're using a lower SP. So, if you upgrade, you'll get the problem resolved (otherwise, I'm not aware of any workarounds.)
Hope that helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.