Class AppRestUrls


  • public final class AppRestUrls
    extends Object
    Author:
    Tijs Rademmakers
    • Field Detail

      • SEGMENT_DEPLOYMENT_ARTIFACT_RESOURCE

        public static final String SEGMENT_DEPLOYMENT_ARTIFACT_RESOURCE
        See Also:
        Constant Field Values
      • SEGMENT_DEPLOYMENT_ARTIFACT_RESOURCE_CONTENT

        public static final String SEGMENT_DEPLOYMENT_ARTIFACT_RESOURCE_CONTENT
        See Also:
        Constant Field Values
      • URL_APP_DEFINITION_COLLECTION

        public static final String[] URL_APP_DEFINITION_COLLECTION
        URL template for an app collection: /app-repository/app-definitions
      • URL_APP_DEFINITION

        public static final String[] URL_APP_DEFINITION
        URL template for a single app: /app-repository/app-definitions/{0:appDefinitionId}
      • URL_APP_DEFINITION_MODEL

        public static final String[] URL_APP_DEFINITION_MODEL
        URL template for a single app model: /app-repository/app-definitions/{0:appDefinitionId}/model
      • URL_APP_DEFINITION_RESOURCE_CONTENT

        public static final String[] URL_APP_DEFINITION_RESOURCE_CONTENT
        URL template for the resource of a single app: /app-repository/app-definitions/{0:appDefinitionId}/resourcedata
      • URL_DEPLOYMENT_COLLECTION

        public static final String[] URL_DEPLOYMENT_COLLECTION
        URL template for a deployment collection: /app-repository/deployments
      • URL_DEPLOYMENT

        public static final String[] URL_DEPLOYMENT
        URL template for a single deployment: /app-repository/deployments/{0:deploymentId}
      • URL_DEPLOYMENT_RESOURCES

        public static final String[] URL_DEPLOYMENT_RESOURCES
        URL template listing deployment resources: app-repository/deployments/{0:deploymentId}/resources
      • URL_DEPLOYMENT_RESOURCE

        public static final String[] URL_DEPLOYMENT_RESOURCE
        URL template for a single deployment resource: app-repository/deployments/{0:deploymentId}/resources/{1}:resourceId
      • URL_DEPLOYMENT_RESOURCE_CONTENT

        public static final String[] URL_DEPLOYMENT_RESOURCE_CONTENT
        URL template for the resource of a single deployment: /app-repository/deployments/{0:deploymentId}/resourcedata/{1:resourceId}
    • Constructor Detail

      • AppRestUrls

        public AppRestUrls()
    • Method Detail

      • createRelativeResourceUrl

        public static String createRelativeResourceUrl​(String[] segments,
                                                       Object... arguments)
        Creates an url based on the passed fragments and replaces any placeholders with the given arguments. The placeholders are following the MessageFormat convention (eg. {0} is replaced by first argument value).