Class DeploymentHandlerUtils

java.lang.Object
org.jboss.as.server.deployment.DeploymentHandlerUtils

public abstract class DeploymentHandlerUtils extends Object
Author:
Carlo de Wolf
  • Constructor Details

    • DeploymentHandlerUtils

      public DeploymentHandlerUtils()
  • Method Details

    • asString

      protected static String asString(org.jboss.dmr.ModelNode node, String name)
    • createFailureException

      protected static OperationFailedException createFailureException(String msg)
    • createFailureException

      protected static OperationFailedException createFailureException(Throwable cause, String msg)
    • getContents

      protected static org.jboss.as.server.deployment.DeploymentHandlerUtil.ContentItem[] getContents(org.jboss.dmr.ModelNode contentNode)
    • getInputStream

      public static InputStream getInputStream(OperationContext context, org.jboss.dmr.ModelNode contentItem) throws OperationFailedException
      Throws:
      OperationFailedException
    • hasValidContentAdditionParameterDefined

      public static boolean hasValidContentAdditionParameterDefined(org.jboss.dmr.ModelNode operation)
      Checks to see if a valid deployment parameter has been defined.
      Parameters:
      operation - the operation to check.
      Returns:
      true of the parameter is valid, otherwise false.
    • validateOnePieceOfContent

      protected static void validateOnePieceOfContent(org.jboss.dmr.ModelNode content) throws OperationFailedException
      Throws:
      OperationFailedException
    • emptyStream

      public static InputStream emptyStream()
    • addFlushHandler

      public 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.
      Parameters:
      context -
      contentRepository -
      handler -