Class ServiceConfig.URLPathMaker

java.lang.Object
uk.ac.manchester.spinnaker.alloc.ServiceConfig.URLPathMaker
Enclosing class:
ServiceConfig

@Component
@Role(1)
public static final class ServiceConfig.URLPathMaker
extends Object
Used for making paths to things in the service in contexts where we can't ask for the current request session to help. An example of such a context is in configuring the access control rules on the paths, which has to be done prior to any message session existing.
Author:
Donal Fellows
  • Constructor Details

  • Method Details

    • systemUrl

      public String systemUrl​(String suffix)
      Create a full local URL for the system components, bearing in mind the deployment configuration.
      Parameters:
      suffix - The URL suffix; should not start with /
      Returns:
      The full local URL (absolute path, without protocol or host)
    • serviceUrl

      public String serviceUrl​(String suffix)
      Create a full local URL for web service components, bearing in mind the deployment configuration.
      Parameters:
      suffix - The URL suffix; should not start with /
      Returns:
      The full local URL (absolute path, without protocol or host)