|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wvcm.LocationImpl
public class LocationImpl
Implementation of Location.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.wvcm.Location |
---|
Location.GenericLocationImpl |
Field Summary |
---|
Fields inherited from interface javax.wvcm.Location |
---|
ALL, AUTHENTICATED, OWNER, SELF, UNAUTHENTICATED |
Constructor Summary | |
---|---|
LocationImpl(java.lang.String location,
ProviderImpl provider)
|
|
LocationImpl(java.lang.String location,
ProviderImpl provider,
boolean escaped)
Default constructor |
Method Summary | |
---|---|
Activity |
activity()
Return a proxy for the activity at this Location. |
Location |
child(java.lang.String bindingName)
Return the Location of the child with the specified binding name in the folder at this Location. |
ControllableResource |
controllableResource()
Return a proxy for the controllable resource at this Location. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
escapedLastSegment()
|
java.lang.String |
escapedPath()
Get the escaped path of this location |
Folder |
folder()
Return a proxy for the folder at this Location. |
Principal.Group |
group()
NOT YET STANDARD Return a proxy for the group principal at this location. |
int |
hashCode()
|
java.lang.String |
hostname()
Get the host |
boolean |
isClientSide()
Return true if this location is a client-side location |
java.lang.String |
lastSegment()
NOT YET STANDARD |
Location |
parent()
Return the Location of the parent folder of the resource at this Location. |
java.lang.String |
path()
Get the path of this location |
int |
port()
Get the port |
Principal |
principal()
NOT YET STANDARD Return a proxy for the principal at this location. |
AccessControlElement.Privilege |
privilege()
NOT YET STANDARD Return a proxy for the privilege at this location. |
Provider |
provider()
Get the provider of this location |
Resource |
resource()
Return a proxy for the resource at this Location. |
Resource |
resource(java.lang.Class cls)
Return a proxy as instance of the specified class for the resource at this Location. |
Principal.Role |
role()
NOT YET STANDARD Return a proxy for the role principal at this location. |
java.lang.String |
scheme()
Get the scheme ("http"/"https"). |
java.lang.String |
string()
Return the string value for this Location. |
java.lang.String |
toString()
|
Workspace |
workspace()
Return a proxy for the workspace at this location. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocationImpl(java.lang.String location, ProviderImpl provider) throws WvcmException
location
- the location stringprovider
- the provider
WvcmException
public LocationImpl(java.lang.String location, ProviderImpl provider, boolean escaped) throws WvcmException
location
- locationprovider
- a ProviderImplescaped
- if true, the string is escaped (URL encoding)
WvcmException
Method Detail |
---|
public Folder folder()
folder
in interface Location
public Resource resource()
resource
in interface Location
public java.lang.String string()
string
in interface Location
public ControllableResource controllableResource()
controllableResource
in interface Location
public Location child(java.lang.String bindingName) throws WvcmException
child
in interface Location
WvcmException
public Workspace workspace()
workspace
in interface Location
public Location parent()
null
is returned.
The string value of the Location of the parent folder
is commonly created by stripping off the last segment
beginning with a "/" character of this Location.
parent
in interface Location
public Activity activity()
activity
in interface Location
public Principal principal()
principal
in interface Location
public Principal.Role role()
role
in interface Location
public Principal.Group group()
group
in interface Location
public AccessControlElement.Privilege privilege()
privilege
in interface Location
public java.lang.String lastSegment()
lastSegment
in interface Location
public java.lang.String escapedLastSegment()
public boolean isClientSide()
public java.lang.String scheme()
public java.lang.String hostname()
public int port()
public Resource resource(java.lang.Class cls) throws WvcmException
cls
- the class of the result resource
WvcmException
public java.lang.String path()
public java.lang.String escapedPath()
public Provider provider()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |