public class ReadContentHandler extends Object implements OperationStepHandler
| Modifier and Type | Field and Description |
|---|---|
protected ContentRepository |
contentRepository |
| Constructor and Description |
|---|
ReadContentHandler(ContentRepository contentRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(OperationContext context,
org.jboss.dmr.ModelNode operation) |
static String |
readFile(org.jboss.vfs.VirtualFile file) |
protected final ContentRepository contentRepository
public ReadContentHandler(ContentRepository contentRepository)
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
execute in interface OperationStepHandlerOperationFailedExceptionpublic static String readFile(org.jboss.vfs.VirtualFile file) throws IOException
IOExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.