Scheme Class

public final class Scheme
extends ExpandableStringEnum<Scheme>

The scheme.

Field Summary

Modifier and Type Field and Description
static final Scheme HTTP

Static value http for Scheme.

static final Scheme HTTPS

Static value https for Scheme.

Constructor Summary

Constructor Description
Scheme()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Scheme value.

Method Summary

Modifier and Type Method and Description
static Scheme fromString(String name)

Creates or finds a Scheme from its string representation.

static Collection<Scheme> values()

Gets known Scheme values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HTTP

public static final Scheme HTTP

Static value http for Scheme.

HTTPS

public static final Scheme HTTPS

Static value https for Scheme.

Constructor Details

Scheme

@Deprecated
public Scheme()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Scheme value.

Method Details

fromString

public static Scheme fromString(String name)

Creates or finds a Scheme from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Scheme.

values

public static Collection values()

Gets known Scheme values.

Returns:

known Scheme values.

Applies to