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

public interface HeaderWriter.Headers

The headers of the response being written.

Methods

public abstract boolean contains(String name)Whether the handler, or an earlier writer, set this header.
public abstract void set(String name, String value)Sets the header, replacing what was there.
public abstract void setIfAbsent(String name, String value)Sets the header unless the handler already did, which is how a default leaves a deliberate choice alone.
public abstract boolean isSecure()Whether the request arrived over TLS this server terminated.
public abstract int getStatus()The status of the response.

Method details

contains

public abstract boolean contains(String name)
Whether the handler, or an earlier writer, set this header.

set

public abstract void set(String name, String value)
Sets the header, replacing what was there.

setIfAbsent

public abstract void setIfAbsent(String name, String value)
Sets the header unless the handler already did, which is how a default leaves a deliberate choice alone.

isSecure

public abstract boolean isSecure()
Whether the request arrived over TLS this server terminated.

getStatus

public abstract int getStatus()
The status of the response.