Package org.jboss.hal.config
Class Endpoints
- java.lang.Object
-
- org.jboss.hal.config.Endpoints
-
public class Endpoints extends Object
Provides access to the endpoints used in HAL.
-
-
Constructor Summary
Constructors Constructor Description Endpoints()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdmr()static StringgetBaseUrl()booleanisSameOrigin()Stringlogout()Stringupload()voiduseBase(String baseUrl)
-
-
-
Field Detail
-
INSTANCE
@Inject public static Endpoints INSTANCE
Please use this constant only in cases where no DI is available.
-
-
Method Detail
-
getBaseUrl
public static String getBaseUrl()
- Returns:
- the base url w/o a trailing slash
-
useBase
public void useBase(String baseUrl)
-
dmr
public String dmr()
- Returns:
- the endpoint used to execute management operations.
-
upload
public String upload()
- Returns:
- the endpoint used for file uploads.
-
logout
public String logout()
- Returns:
- {string} the endpoint used for logout.
-
isSameOrigin
public boolean isSameOrigin()
- Returns:
- true if the console is served from a WildFly / EAP instance, false if it runs standalone and connected to an arbitrary management endpoint.
-
-