cancel
Showing results for 
Search instead for 
Did you mean: 

Return HTTP Response Code from custom login module

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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!