You can use method AbstractRestResource.setResponseStatusCode
Thanks Andrea. I'm working this out. Now I have one more question:
How can I return an Http 401 Status Code of Unauthorized if the password is
incorrect? I know I can return values, such as the PersonPojo in the
example, and I can return error messages
from the from a registered validator, but I think it is standard to return
401 on authentication failure. Can I return a Status Code?
Bruce
-----Original Message-----
From: Andrea Del Bene [mailto:[email protected]]
Sent: Friday, August 01, 2014 12:26 PM
To: [email protected]
Subject: Re: Wicketstuff restannotations example throws
IllegalStateException: STREAMED with https
I would pass them as request parameters...
Andrea,
I have the SSL working fine when I call it from a Java program using
HttpsURLConnection. So it was something with "curl."
I wonder if you could suggest how I could pass a username and password
along with the json string and authenticate the request.
Thanks,
Bruce
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]