public final class ClientResource
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ClientResource.Type
Represents where the client looks for a resource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static @NotNull ClientResource |
external(@NotNull java.lang.String value)
Compiles an external resource.
|
@NotNull ClientResource.Type |
getType()
Get the type of the resource.
|
@NotNull java.lang.String |
getValue()
Get the value of the resource.
|
int |
hashCode() |
static @NotNull ClientResource |
internal(@NotNull java.lang.String value)
Compiles an internal resource.
|
@NotNull java.lang.String |
toString() |
@NotNull public @NotNull ClientResource.Type getType()
ClientResource.Type
@NotNull public @NotNull java.lang.String getValue()
For ClientResource.Type.INTERNAL
this is a path,
for ClientResource.Type.EXTERNAL
this is a URL.
ClientResource.Type
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public static @NotNull ClientResource internal(@NotNull @NotNull java.lang.String value)
value
- the local path to the resourceClientResource.Type.INTERNAL
@NotNull public static @NotNull ClientResource external(@NotNull @NotNull java.lang.String value)
value
- the URL to the resourceClientResource.Type.EXTERNAL