Class Endpoints


  • public class Endpoints
    extends Object
    Provides access to the endpoints used in HAL.
    • Field Detail

      • INSTANCE

        @Inject
        public static Endpoints INSTANCE
        Please use this constant only in cases where no DI is available.
    • Constructor Detail

      • Endpoints

        public Endpoints()
    • 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.