|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.graph.request.processor.RequestProcessor
org.jboss.dna.graph.request.processor.LoggingRequestProcessor
public class LoggingRequestProcessor

A RequestProcessor implementation that wraps another and that logs messages at the supplied level.
| Constructor Summary | |
|---|---|
LoggingRequestProcessor(RequestProcessor delegate,
Logger logger,
Logger.Level level)
|
|
| Method Summary | |
|---|---|
void |
close()
Close this processor, allowing it to clean up any open resources. |
void |
process(CloneWorkspaceRequest request)
Process a request to clone an existing workspace as a new workspace. |
void |
process(CompositeRequest request)
Process a request that is composed of multiple other (non-composite) requests. |
void |
process(CopyBranchRequest request)
Process a request to copy a branch into another location. |
void |
process(CreateNodeRequest request)
Process a request to create a node at a specified location. |
void |
process(CreateWorkspaceRequest request)
Process a request to create a new workspace. |
void |
process(DeleteBranchRequest request)
Process a request to delete a branch at a specified location. |
void |
process(DestroyWorkspaceRequest request)
Process a request to permanently destroy a workspace. |
void |
process(GetWorkspacesRequest request)
Process a request to get the information about the available workspaces. |
void |
process(MoveBranchRequest request)
Process a request to move a branch at a specified location into a different location. |
void |
process(ReadAllChildrenRequest request)
Process a request to read all of the children of a node. |
void |
process(ReadAllPropertiesRequest request)
Process a request to read the properties of a node at the supplied location. |
void |
process(ReadBlockOfChildrenRequest request)
Process a request to read a block of the children of a node. |
void |
process(ReadBranchRequest request)
Process a request to read a branch or subgraph that's below a node at a specified location. |
void |
process(ReadNextBlockOfChildrenRequest request)
Process a request to read the next block of the children of a node, starting after a previously-retrieved child. |
void |
process(ReadNodeRequest request)
Process a request to read the properties and children of a node at the supplied location. |
void |
process(ReadPropertyRequest request)
Process a request to read a single property of a node at the supplied location. |
void |
process(RemovePropertyRequest request)
Process a request to remove the specified property from a node. |
void |
process(RenameNodeRequest request)
Process a request to rename a node specified location into a different location. |
void |
process(Request request)
Process a request by determining the type of request and delegating to the appropriate process method for that
type. |
void |
process(SetPropertyRequest request)
Process a request to set the specified property on a node. |
void |
process(UpdatePropertiesRequest request)
Process a request to remove the specified properties from a node. |
void |
process(VerifyNodeExistsRequest request)
Process a request to verify that a node exists at the supplied location. |
void |
process(VerifyWorkspaceRequest request)
Process a request to verify a named workspace. |
| Methods inherited from class org.jboss.dna.graph.request.processor.RequestProcessor |
|---|
getExecutionContext, getSourceName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingRequestProcessor(RequestProcessor delegate,
Logger logger,
Logger.Level level)
delegate - the processor to which this processor delegateslogger - the logger that should be usedlevel - the level of the log messages; defaults to Logger.Level#TRACE| Method Detail |
|---|
public void process(VerifyWorkspaceRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the requestRequestProcessor.process(org.jboss.dna.graph.request.VerifyWorkspaceRequest)public void process(GetWorkspacesRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the requestRequestProcessor.process(org.jboss.dna.graph.request.GetWorkspacesRequest)public void process(CreateWorkspaceRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the requestRequestProcessor.process(org.jboss.dna.graph.request.CreateWorkspaceRequest)public void process(CloneWorkspaceRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the requestRequestProcessor.process(org.jboss.dna.graph.request.CloneWorkspaceRequest)public void process(DestroyWorkspaceRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the requestRequestProcessor.process(org.jboss.dna.graph.request.DestroyWorkspaceRequest)public void process(CopyBranchRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the copy requestRequestProcessor.process(org.jboss.dna.graph.request.CopyBranchRequest)public void process(CreateNodeRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the create requestRequestProcessor.process(org.jboss.dna.graph.request.CreateNodeRequest)public void process(DeleteBranchRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the delete requestRequestProcessor.process(org.jboss.dna.graph.request.DeleteBranchRequest)public void process(MoveBranchRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the move requestRequestProcessor.process(org.jboss.dna.graph.request.MoveBranchRequest)public void process(VerifyNodeExistsRequest request)
This method does nothing if the request is null. Unless overridden, this method converts the request that
reads the node and uses the result to determine if the node exists.
process in class RequestProcessorrequest - the read requestRequestProcessor.process(org.jboss.dna.graph.request.VerifyNodeExistsRequest)public void process(ReadAllChildrenRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadAllChildrenRequest)public void process(ReadAllPropertiesRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadAllPropertiesRequest)public void process(UpdatePropertiesRequest request)
This method does nothing if the request is null.
process in class RequestProcessorrequest - the remove requestRequestProcessor.process(org.jboss.dna.graph.request.UpdatePropertiesRequest)public void process(CompositeRequest request)
has an error after it is processed, the submitted request will be marked with an error.
This method does nothing if the request is null.
process in class RequestProcessorrequest - the composite requestRequestProcessor.process(org.jboss.dna.graph.request.CompositeRequest)public void process(ReadBlockOfChildrenRequest request)
starting index and a maximum
number of children to include in the block.
This method does nothing if the request is null. The default implementation converts the command to a
ReadAllChildrenRequest, and then finds the children within the block. Obviously for large numbers of children, this
implementation may not be efficient and may need to be overridden.
process in class RequestProcessorrequest - the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadBlockOfChildrenRequest)public void process(ReadNextBlockOfChildrenRequest request)
This method does nothing if the request is null. The default implementation converts the command to a
ReadAllChildrenRequest, and then finds the children within the block. Obviously for large numbers of children, this
implementation may not be efficient and may need to be overridden.
process in class RequestProcessorrequest - the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadNextBlockOfChildrenRequest)public void process(ReadBranchRequest request)
This method does nothing if the request is null. The default implementation processes the branch by submitting the
equivalent requests to read the nodes and the children. It starts by
doing this for the top-level node, then proceeds for each of the children of that node, and so forth.
process in class RequestProcessorrequest - the request to read the branchRequestProcessor.process(org.jboss.dna.graph.request.ReadBranchRequest)public void process(ReadNodeRequest request)
This method does nothing if the request is null. Unless overridden, this method converts the single request into a
ReadAllChildrenRequest and a ReadAllPropertiesRequest.
process in class RequestProcessorrequest - the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadNodeRequest)public void process(ReadPropertyRequest request)
This method does nothing if the request is null. Unless overridden, this method converts the request that
reads the node and simply returns the one property.
process in class RequestProcessorrequest - the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadPropertyRequest)public void process(SetPropertyRequest request)
This method does nothing if the request is null. Unless overridden, this method converts this request into a
UpdatePropertiesRequest.
process in class RequestProcessorrequest - the request to set the propertyRequestProcessor.process(org.jboss.dna.graph.request.SetPropertyRequest)public void process(RemovePropertyRequest request)
This method does nothing if the request is null. Unless overridden, this method converts this request into a
UpdatePropertiesRequest.
process in class RequestProcessorrequest - the request to remove the propertyRequestProcessor.process(org.jboss.dna.graph.request.RemovePropertyRequest)public void process(RenameNodeRequest request)
This method does nothing if the request is null. Unless overridden, this method converts the rename into a
move. However, this only works if the request has a path
for its location. (If not, this method throws an UnsupportedOperationException and
must be overridden.)
process in class RequestProcessorrequest - the rename requestRequestProcessor.process(org.jboss.dna.graph.request.RenameNodeRequest)public void process(Request request)
process method for that
type.
This method does nothing if the request is null.
process in class RequestProcessorrequest - the general requestRequestProcessor.process(org.jboss.dna.graph.request.Request)public void close()
close in class RequestProcessorRequestProcessor.close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||