public abstract class DeploymentHandlerUtils extends Object
| Constructor and Description |
|---|
DeploymentHandlerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFlushHandler(OperationContext context,
ContentRepository contentRepository,
OperationContext.ResultHandler handler)
Adds a new result handler that will flush (aka amend commit) the changes in the content repository.
|
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()
public static void addFlushHandler(OperationContext context, ContentRepository contentRepository, OperationContext.ResultHandler handler)
context - contentRepository - handler - Copyright © 2021 JBoss by Red Hat. All rights reserved.