Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class HttpStatusEntryPoint
- Object
- HttpStatusEntryPoint
ImplementsAuthenticationEntryPoint
Answers with a status and nothing else:
new HttpStatusEntryPoint(401) for
an API whose clients know how to authenticate without being told.Constructors
public HttpStatusEntryPoint(int status) |
Methods
public HttpServer.Response commence(HttpServer.Request request, AuthenticationException authException) | The answer. |
Inherited methods
Constructor details
HttpStatusEntryPoint
public HttpStatusEntryPoint(int status)Method details
commence
public HttpServer.Response commence(HttpServer.Request request, AuthenticationException authException)The answer.
Parameters
requestHttpServer.Request- Not documented.
authExceptionAuthenticationException- why the request was not let through