Class ResourceRef

java.lang.Object
com.aquima.interactions.foundation.io.ResourceRef
All Implemented Interfaces:
Serializable

public class ResourceRef extends Object implements Serializable
Utility class used to store the protocol and name of a resource.
Since:
6.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ResourceRef

      public ResourceRef(String path)
      Constructs a resource reference from a path string. The path should consist of at least the resource name, optionally prefixed by the protocol that should be used.
      Parameters:
      path - The resource path for which the reference is created.
  • Method Details

    • getProtocol

      public String getProtocol()
      This method returns the protocol as specified in the resource path. The protocol is optional, and as such, this method may return a null value.
      Returns:
      The protocol as specified in the resource path.
    • getName

      public String getName()
      This method returns the name of the resource.
      Returns:
      The name of the resource.
    • toString

      public String toString()
      Overrides:
      toString in class Object