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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDeploymentUploadHandler(ContentRepository contentRepository, AttributeDefinition attribute) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(OperationContext context, org.jboss.dmr.ModelNode operation) protected abstract InputStreamgetContentInputStream(OperationContext context, org.jboss.dmr.ModelNode operation)
-
Field Details
-
attribute
-
-
Constructor Details
-
AbstractDeploymentUploadHandler
protected AbstractDeploymentUploadHandler(ContentRepository contentRepository, AttributeDefinition attribute)
-
-
Method Details
-
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
-