Examples of asBytes()


Examples of org.jboss.dmr.ModelNode.asBytes()

        ModelNode op = new ModelNode();
        op.get("operation").set("upload-deployment-stream");
        op.get("input-stream-index").set(0);
        Operation operation = new OperationBuilder(op).addInputStream(stream).build();
        ModelNode result = executeForResult(operation);
        return result.asBytes();
    }

    @Override
    public DomainDeploymentManager getDeploymentManager() {
        if (deploymentManager == null) {
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBytes()

                            break;
                        case BIG_INTEGER:
                            toSet.set(modelValue.asBigInteger());
                            break;
                        case BYTES:
                            toSet.set(modelValue.asBytes());
                            break;
                        case DOUBLE:
                            toSet.set(modelValue.asDouble());
                            break;
                        case INT:
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBytes()

    public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {

        PathElement pe = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement();

        ModelNode hashNode = HASH.validateOperation(operation);
        byte[] hash = hashNode.isDefined() ? hashNode.asBytes() : null;

        // Create and add the specialized resource type we use for this resource tree
        ManagedDMRContentTypeResource resource = new ManagedDMRContentTypeResource(pe, childType, hash, contentRepository);
        context.addResource(PathAddress.EMPTY_ADDRESS, resource);
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBytes()

                            break;
                        case BIG_INTEGER:
                            toSet.set(modelValue.asBigInteger());
                            break;
                        case BYTES:
                            toSet.set(modelValue.asBytes());
                            break;
                        case DOUBLE:
                            toSet.set(modelValue.asDouble());
                            break;
                        case INT:
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBytes()

                            break;
                        case BIG_INTEGER:
                            toSet.set(modelValue.asBigInteger());
                            break;
                        case BYTES:
                            toSet.set(modelValue.asBytes());
                            break;
                        case DOUBLE:
                            toSet.set(modelValue.asDouble());
                            break;
                        case INT:
View Full Code Here

Examples of play.mvc.Http.RawBuffer.asBytes()

        RawBuffer raw = request.body().asRaw();

        byte[] buf;

        try {
            buf = raw.asBytes();
        } catch (NullPointerException e) {
            // asBytes() raises NullPointerException if the raw body is larger
            // than the limit defined by BodyParser.of annotation at
            // SvnApp.service() method.
            throw new IOException("Request entity is too large.", e);
View Full Code Here

Examples of reactor.io.Buffer.asBytes()

      public Buffer apply(OUT out) {
        Buffer buff = delegate.encoder().apply(out);
        try {
          ByteArrayOutputStream bout = new ByteArrayOutputStream();
          OutputStream zout = createOutputStream(bout);
          zout.write(buff.asBytes());
          zout.flush();
          bout.flush();
          zout.close();
          return Buffer.wrap(bout.toByteArray());
        } catch(IOException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.