Package oracle.pgx.common.auth
Class PgxFileLocationResource
- java.lang.Object
-
- oracle.pgx.common.auth.PgxFileLocationResource
-
- All Implemented Interfaces:
PgxResource
public class PgxFileLocationResource extends java.lang.Object implements PgxResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oracle.pgx.common.auth.PgxResource
PgxResource.Type
-
-
Constructor Summary
Constructors Constructor Description PgxFileLocationResource(java.lang.String name, java.lang.String location)
PgxFileLocationResource(java.lang.String name, java.nio.file.Path path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
java.nio.file.Path
getPath()
PgxResource.Type
getResourceType()
int
hashCode()
static boolean
isFileResource(java.lang.String uri)
static java.nio.file.Path
normalizeLocation(java.lang.String location, oracle.pgx.common.UserContext userContext)
static PgxFileLocationResource
of(java.lang.String location, oracle.pgx.common.UserContext userContext)
java.lang.String
toString()
-
-
-
Method Detail
-
of
public static PgxFileLocationResource of(java.lang.String location, oracle.pgx.common.UserContext userContext)
-
isFileResource
public static boolean isFileResource(java.lang.String uri)
-
normalizeLocation
public static java.nio.file.Path normalizeLocation(java.lang.String location, oracle.pgx.common.UserContext userContext)
-
getName
public java.lang.String getName()
-
getPath
public java.nio.file.Path getPath()
-
getResourceType
public PgxResource.Type getResourceType()
- Specified by:
getResourceType
in interfacePgxResource
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-