Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class HttpStatusEntryPoint

  1. Object
  2. 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

request HttpServer.Request
Not documented.
authException AuthenticationException
why the request was not let through