Package org.jboss.as.server.deployment
Class AbstractDeploymentUploadHandler
- java.lang.Object
-
- org.jboss.as.server.deployment.AbstractDeploymentUploadHandler
-
- All Implemented Interfaces:
OperationStepHandler
- Direct Known Subclasses:
DeploymentUploadBytesHandler,DeploymentUploadStreamAttachmentHandler,DeploymentUploadURLHandler
public abstract class AbstractDeploymentUploadHandler extends Object implements OperationStepHandler
Base class for operation handlers that can handle the upload of deployment content.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeDefinitionattribute
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDeploymentUploadHandler(ContentRepository contentRepository, AttributeDefinition attribute)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute(OperationContext context, org.jboss.dmr.ModelNode operation)protected abstract InputStreamgetContentInputStream(OperationContext context, org.jboss.dmr.ModelNode operation)
-
-
-
Field Detail
-
attribute
protected final AttributeDefinition attribute
-
-
Constructor Detail
-
AbstractDeploymentUploadHandler
protected AbstractDeploymentUploadHandler(ContentRepository contentRepository, AttributeDefinition attribute)
-
-
Method Detail
-
execute
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
- Specified by:
executein interfaceOperationStepHandler- Throws:
OperationFailedException
-
getContentInputStream
protected abstract InputStream getContentInputStream(OperationContext context, org.jboss.dmr.ModelNode operation) throws IOException, OperationFailedException
- Throws:
IOExceptionOperationFailedException
-
-