|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.pageseeder.CallService
public final class CallService
A generator than can connect to PageSeeder and call a PageSeeder service.
There is no configuration directly required with this generator; however since this generator
connects to PageSeeder the bastille.pageseeder
properties must setup in order
to defined which server to connect to.
The following parameter is required:
ps-service | The name of the service to connect to (required) |
---|
The following parameters can also be specified:
ps-method | The HTTP method to use to connect to PageSeeder, must be either
GET |POST; GET is the default is this parameter is not
specified
|
---|
Any other parameter will automatically be transmitted to the PageSeeder service.
TODO
If an error occurs while invoking the service, the XML will also include the
error
and message
attributes. The HTTP status should
correspond to an HTTP error code.
<ps-service resource="/members/[member id]/projects"
http-status="[error]"
content-type="application/xml"
error="[error-type]"
message="[error-message]">
</ps-service>
This generator will attempt to use the user currently logged in.
If the current user is not PageSeeder user or if there is no user currently logged in, the request will be made anonymously.
This is a generic generator; use this generator when no other specialised generator provides the same functionality.
Constructor Summary | |
---|---|
CallService()
|
Method Summary | |
---|---|
void |
process(ContentRequest req,
XMLWriter xml)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallService()
Method Detail |
---|
public void process(ContentRequest req, XMLWriter xml) throws BerliozException, IOException
process
in interface ContentGenerator
BerliozException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |