|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SafeOperationFactory
Factory for safe operations. Safe operations are operations which do not have any side effects and which are repeatable. Safe operations are supposed to be triggered using HTTP GET requests.
Safe operation factories can be registered using the extension point
SafeOperationFactory.EXTENSION_POINT_ID
. Operation factory
implementations must provide a 0-arg constructor.
Field Summary | |
---|---|
static java.lang.String |
EXTENSION_POINT_ID
Extension point to plug in a custom factory fpr safe operations. |
Method Summary | |
---|---|
SafeOperation |
newOperation(java.net.URI resourceURI,
java.util.Map<java.lang.String,java.lang.String[]> operationParams,
java.util.Map<java.lang.String,java.lang.String[]> requestParams,
Context context)
Creates a new operation for the given context. |
Methods inherited from interface com.ibm.portal.resolver.operations.OperationFactory |
---|
newOperationURI, newOperationURI, newOperationURI |
Field Detail |
---|
static final java.lang.String EXTENSION_POINT_ID
Method Detail |
---|
SafeOperation newOperation(java.net.URI resourceURI, java.util.Map<java.lang.String,java.lang.String[]> operationParams, java.util.Map<java.lang.String,java.lang.String[]> requestParams, Context context) throws CannotCreateOperationException
SafeOperation
representing an operation which does not have any
side effects but just resolves a particular resource.
newOperation
in interface OperationFactory
resourceURI
- The URI of the resource the operation should be applied to.
May be null
.operationParams
- The parameters of the operation that were part of the
operation URI. Must not be null
.requestParams
- The request parameters. Must not be null
.context
- The current runtime context. Must not be null
.
SafeOperation
object. Never null
.
CannotCreateOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |