public class DeploymentUploadStreamAttachmentHandler extends AbstractDeploymentUploadHandler implements DescriptionProvider
Modifier and Type | Field and Description |
---|---|
static String |
OPERATION_NAME |
Constructor and Description |
---|
DeploymentUploadStreamAttachmentHandler()
Constructor for a slave Host Controller
|
DeploymentUploadStreamAttachmentHandler(ContentRepository repository)
Constructor for a master Host Controller
|
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getContentInputStream(OperationContext operationContext,
org.jboss.dmr.ModelNode operation) |
org.jboss.dmr.ModelNode |
getModelDescription(Locale locale)
Gets the descriptive information (human-friendly description, list of attributes,
list of children) describing a single model node or operation.
|
execute
public static final String OPERATION_NAME
public DeploymentUploadStreamAttachmentHandler()
public DeploymentUploadStreamAttachmentHandler(ContentRepository repository)
repository
- the master content repository. If null
this handler will function as a slave hander would.public org.jboss.dmr.ModelNode getModelDescription(Locale locale)
DescriptionProvider
The implementation must assume that the caller intends to modify the
returned ModelNode
so it should not hand out a reference to any internal data structures.
getModelDescription
in interface DescriptionProvider
locale
- the locale to use to generate any localized text used in the description.
May be null
, in which case Locale.getDefault()
should be usedModelNode
describing the model node's structureprotected InputStream getContentInputStream(OperationContext operationContext, org.jboss.dmr.ModelNode operation) throws OperationFailedException
getContentInputStream
in class AbstractDeploymentUploadHandler
OperationFailedException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.