Package org.opennms.web.rest.api
Class ResourceLocation
- java.lang.Object
-
- org.opennms.web.rest.api.ResourceLocation
-
public class ResourceLocation extends java.lang.Object
Points to the resource location of a certain resource to not have a client worry about where to find an element, e.g. http://localhost:8980/opennms/api/v2/business-services/1. The ResourceLocation always assumes a valid result with HTTP-Method: GET.
-
-
Constructor Summary
Constructors Constructor Description ResourceLocation()
ResourceLocation(ApiVersion version, java.lang.String... path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
static ResourceLocation
parse(java.lang.String locationString)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ResourceLocation
public ResourceLocation()
-
ResourceLocation
public ResourceLocation(ApiVersion version, java.lang.String... path)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
parse
public static ResourceLocation parse(java.lang.String locationString)
-
-