public abstract class DeploymentHandlerUtils extends Object
| Constructor and Description |
|---|
DeploymentHandlerUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
asString(org.jboss.dmr.ModelNode node,
String name) |
protected static OperationFailedException |
createFailureException(String msg) |
protected static OperationFailedException |
createFailureException(Throwable cause,
String msg) |
static InputStream |
emptyStream() |
protected static org.jboss.as.server.deployment.DeploymentHandlerUtil.ContentItem[] |
getContents(org.jboss.dmr.ModelNode contentNode) |
static InputStream |
getInputStream(OperationContext context,
org.jboss.dmr.ModelNode contentItem) |
static boolean |
hasValidContentAdditionParameterDefined(org.jboss.dmr.ModelNode operation)
Checks to see if a valid deployment parameter has been defined.
|
protected static void |
validateOnePieceOfContent(org.jboss.dmr.ModelNode content) |
protected static OperationFailedException createFailureException(String msg)
protected static OperationFailedException createFailureException(Throwable cause, String msg)
protected static org.jboss.as.server.deployment.DeploymentHandlerUtil.ContentItem[] getContents(org.jboss.dmr.ModelNode contentNode)
public static InputStream getInputStream(OperationContext context, org.jboss.dmr.ModelNode contentItem) throws OperationFailedException
OperationFailedExceptionpublic static boolean hasValidContentAdditionParameterDefined(org.jboss.dmr.ModelNode operation)
operation - the operation to check.true of the parameter is valid, otherwise false.protected static void validateOnePieceOfContent(org.jboss.dmr.ModelNode content)
throws OperationFailedException
OperationFailedExceptionpublic static InputStream emptyStream()
Copyright © 2016 JBoss by Red Hat. All rights reserved.