public class DeploymentUploadURLHandler extends AbstractDeploymentUploadHandler implements DescriptionProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
OPERATION_NAME |
| Constructor and Description |
|---|
DeploymentUploadURLHandler()
Constructor for a slave Host Controller
|
DeploymentUploadURLHandler(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.
|
executepublic static final String OPERATION_NAME
public DeploymentUploadURLHandler()
public DeploymentUploadURLHandler(ContentRepository repository)
repository - the master content repository. If null this handler will function as a slave handler 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 DescriptionProviderlocale - 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 AbstractDeploymentUploadHandlerOperationFailedExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.