|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.pageseeder.PSResource
public final class PSResource
Defines a resource to retrieve from PageSeeder.
Nested Class Summary | |
---|---|
static class |
PSResource.Builder
A builder for this resource. |
Constructor Summary | |
---|---|
PSResource(PSResourceType type,
String name)
Creates a new connection to the specified resource. |
Method Summary | |
---|---|
void |
addParameter(String name,
String value)
Add a parameter to this request. |
String |
name()
Returns the name of the resource to access. |
URL |
toURL(PSUser user)
Returns the URL to access this resource. |
PSResourceType |
type()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PSResource(PSResourceType type, String name)
type
- The type of resource.name
- The name of the resource to access (depends on the type of resource)Method Detail |
---|
public PSResourceType type()
public String name()
public void addParameter(String name, String value)
name
- The name of the parametervalue
- The value of the parameterpublic URL toURL(PSUser user) throws MalformedURLException
If the user is specified, its details will be included in the URL so that the resource can be accessed on his behalf.
user
- A PageSeeder to access this resource.
MalformedURLException
- If the URL is not well-formed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |