Class ReadContentHandler
- java.lang.Object
-
- org.jboss.as.server.deploymentoverlay.ReadContentHandler
-
- All Implemented Interfaces:
OperationStepHandler
public class ReadContentHandler extends Object implements OperationStepHandler
- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentRepositorycontentRepository
-
Constructor Summary
Constructors Constructor Description ReadContentHandler(ContentRepository contentRepository)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(OperationContext context, org.jboss.dmr.ModelNode operation)static StringreadFile(org.jboss.vfs.VirtualFile file)
-
-
-
Field Detail
-
contentRepository
protected final ContentRepository contentRepository
-
-
Constructor Detail
-
ReadContentHandler
public ReadContentHandler(ContentRepository contentRepository)
-
-
Method Detail
-
execute
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
- Specified by:
executein interfaceOperationStepHandler- Throws:
OperationFailedException
-
readFile
public static String readFile(org.jboss.vfs.VirtualFile file) throws IOException
- Throws:
IOException
-
-