Examples of Body


Examples of org.apache.soap.Body

        Trc.entry(this, input, output, fault);

        if (!prepared)
            prepare(input, output);
        Envelope msgEnv = new Envelope();
        Body msgBody = new Body();
        Vector vect = new Vector();

        Iterator iterator =
            operation.getInput().getMessage().getParts().keySet().iterator();
        while (iterator.hasNext()) {
            String partName = (String) iterator.next();
            Object part = input.getObjectPart(partName);
            String encoding = null;
            if ("literal".equals(inputUse)) {
                // Should also include namespace
                encoding = "literal";
            } else {
                encoding = this.inputEncodingStyle;
            }

            PartSerializer partSerializer = null;
            Object o =
                portInstance.getSOAPMappingRegistry().querySerializer(
                    part.getClass(),
                    inputUse);
            if (o instanceof PartSerializer) {
                PartSerializer tmp = (PartSerializer) o;
                try {
                    partSerializer =
                        (PartSerializer) tmp.getClass().newInstance();
                } catch (InstantiationException e) {
                    Trc.ignoredException(e);
                } catch (IllegalAccessException e) {
                    Trc.ignoredException(e);
                }
                partSerializer.setPart(part);
                Part modelPart =
                    operation.getInput().getMessage().getPart(partName);
                javax.xml.namespace.QName partType = modelPart.getTypeName();
                if (partType == null)
                    partType = modelPart.getElementName();
                partSerializer.setPartQName(partType);
            } else // document with soap encoding - never been tried
                {
                partSerializer = new SOAPEncSerializerWrapper();
                partSerializer.setPart(part);
                (
                    (
                        SOAPEncSerializerWrapper) partSerializer)
                            .setTargetSerializer(
                    (Serializer) o);
            }

            Bean bean = new Bean(partSerializer.getClass(), partSerializer);
            vect.add(bean);
        }

        // create message envelope and body
        URL url = portInstance.getEndPoint();
        Envelope env = null;
        msgBody.setBodyEntries(vect);
        msgEnv.setBody(msgBody);

        SOAPTransport st = getTransport();

        if (st instanceof SOAPJMSConnection) {
           SOAPJMSConnection sjt = (SOAPJMSConnection) st;
           sjt.setSyncTimeout(WSIFProperties.getSyncTimeout());
           sjt.setAsyncTimeout(WSIFProperties.getAsyncTimeout());
        }

        if (inJmsPropVals != null && !inJmsPropVals.isEmpty()) {
        checkForTimeoutProperties(st, inJmsPropVals);
           ((SOAPJMSConnection) st).setJmsProperties(inJmsPropVals);
        }

        //TODO docstyle headers
        //setCallContext( call );

        if ( url != null && !isHostInNonProxyProperty( url ) ) {
           setSOAPProxy( st );
        }

        // create and send message
        try {
            Message msg = new Message();
            if (st != null)
                msg.setSOAPTransport(st);

            Trc.event(
                this,
                "Invoking operation ",
                getName(),
                " url ",
                url,
                " soapaction ",
                getSoapActionURI(),
                " envelope ",
                msgEnv,
                " message ",
                msg);

            msg.send(url, getSoapActionURI(), msgEnv);

            // receive response envelope
            env = msg.receiveEnvelope();
        } catch (SOAPException exn) {
            Trc.exception(exn);
            WSIFException e =
                new WSIFException("SOAP Exception: " + exn.getMessage());
            e.setTargetException(exn);
            throw e;
        }

        Trc.event(this, "Returned from operation, envelope ", env);

        Body retbody = env.getBody();
        java.util.Vector v = retbody.getBodyEntries();
        int index = 0;

        String encoding = null;
        if ("literal".equals(outputUse)) {
            // Should also include namespace
View Full Code Here

Examples of org.apache.tapestry.html.Body

        // If some other field has taken the honors, then let it.

        if (cycle.getAttribute(SELECTED_ATTRIBUTE_NAME) != null)
            return;

        Body body = Body.get(cycle);

        // If not wrapped by a Body, then do nothing.

        if (body == null)
            return;

        IForm form = Form.get(cycle);

        String formName = form.getName();
        String textFieldName = getName();

        String fullName = "document." + formName + "." + textFieldName;

        body.addInitializationScript(fullName + ".focus();");
        body.addInitializationScript(fullName + ".select();");

        // Put a marker in, indicating that the selected field is known.

        cycle.setAttribute(SELECTED_ATTRIBUTE_NAME, Boolean.TRUE);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.border.Body

      "If you see this message wicket is properly configured and running"));

    MyBorder border = new MyBorder("border");
    add(border);

    Body body = border.getBodyContainer();
    body.add(new TextField<String>("textfield", new PropertyModel<String>(this, "textfield")));
    body.add(new Label("lbltextfield", new PropertyModel<String>(this, "textfield")));
    body.add(new MyTextField("datefield", new PropertyModel<String>(this, "datefield")).setOutputMarkupId(true));
    body.add(new Label("lbldatefield", new PropertyModel<String>(this, "datefield")));
    body.add(new MyDateField("datefield2", new PropertyModel<String>(this, "datefield2")).setOutputMarkupId(true));
    body.add(new Label("lbldatefield2", new PropertyModel<String>(this, "datefield2")));
  }
View Full Code Here

Examples of org.asynchttpclient.Body

            }
        };
        generator.setFeeder(new FeedableBodyGenerator.BaseFeeder(generator) {
            @Override
            public void flush() throws IOException {
                final Body bodyLocal = feedableBodyGenerator.createBody();
                try {
                    final MemoryManager mm = ctx.getMemoryManager();
                    boolean last = false;
                    while (!last) {
                        Buffer buffer = mm.allocate(BodyHandler.MAX_CHUNK_SIZE);
                        buffer.allowBufferDispose(true);
                        final long readBytes = bodyLocal.read(buffer.toByteBuffer());
                        if (readBytes > 0) {
                            buffer.position((int) readBytes);
                            buffer.trim();
                        } else {
                            buffer.dispose();
                            if (readBytes < 0) {
                                last = true;
                                buffer = Buffers.EMPTY_BUFFER;
                            } else {
                                throw new IllegalStateException("MultipartBody unexpectedly returned 0 bytes available");
                            }
                        }
                        feed(buffer, last);
                    }
                } finally {
                    if (bodyLocal != null) {
                        try {
                            bodyLocal.close();
                        } catch (IOException ignore) {
                        }
                    }
                }
            }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.impl.instance.Body

    // create sentry containing ifPart
    Sentry sentry = createElement(casePlanModel, "Sentry_1", Sentry.class);
    IfPart ifPart = createElement(sentry, "abc", IfPart.class);
    ConditionExpression conditionExpression = createElement(ifPart, "def", ConditionExpression.class);
    Body body = createElement(conditionExpression, null, Body.class);
    body.setTextContent("${test}");

    // set exitCriteria
    casePlanModel.getExitCriterias().add(sentry);

    // transform casePlanModel
View Full Code Here

Examples of org.docx4j.wml.Body

//         }
//    }
//    // We need to know what fonts and styles are used in the document
     
    org.docx4j.wml.Document wmlDocumentEl = (org.docx4j.wml.Document)this.getJaxbElement();
    Body body =  wmlDocumentEl.getBody();

    List <Object> bodyChildren = body.getContent();
   
    FontDiscoveryCharacterVisitor visitor = new FontDiscoveryCharacterVisitor(fontsDiscovered);
    RunFontSelector runFontSelector = new RunFontSelector((WordprocessingMLPackage) this.pack, visitor, RunFontActionType.DISCOVERY);
   
    FontAndStyleFinder finder = new FontAndStyleFinder(runFontSelector, fontsDiscovered, null);
View Full Code Here

Examples of org.eclipse.handly.model.impl.Body

        if (_notEquals_2) {
          IMarkerDelta[] _markerDeltas = delta.getMarkerDeltas();
          this.markersChanged(erlProject, _markerDeltas);
        }
        IHandle _parent = erlProject.getParent();
        final Body parentBody = ErlDeltaProcessor.findBody(_parent);
        final IHandle[] children = parentBody.getChildren();
        boolean _contains = ((List<IHandle>)Conversions.doWrapArray(children)).contains(erlProject);
        boolean _not = (!_contains);
        if (_not) {
          ErlDeltaProcessor.addToModel(erlProject);
        }
View Full Code Here

Examples of org.eclipse.handly.model.impl.Body

    this.currentDelta.insertChanged(source, IHandleDelta.F_CONTENT);
  }
 
  private static void addToModel(final IHandle element) {
    IHandle _parent = element.getParent();
    final Body parentBody = ErlDeltaProcessor.findBody(_parent);
    boolean _tripleNotEquals = (parentBody != null);
    if (_tripleNotEquals) {
      parentBody.addChild(element);
    }
    ErlDeltaProcessor.close(element);
  }
View Full Code Here

Examples of org.eclipse.handly.model.impl.Body

    ErlDeltaProcessor.close(element);
  }
 
  private static void removeFromModel(final IHandle element) {
    IHandle _parent = element.getParent();
    final Body parentBody = ErlDeltaProcessor.findBody(_parent);
    boolean _tripleNotEquals = (parentBody != null);
    if (_tripleNotEquals) {
      parentBody.removeChild(element);
    }
    ErlDeltaProcessor.close(element);
  }
View Full Code Here

Examples of org.eclipse.handly.model.impl.Body

          int _kind = delta.getKind();
          int _bitwiseOr = (IResourceDelta.ADDED | IResourceDelta.REMOVED);
          int _bitwiseAnd = (_kind & _bitwiseOr);
          boolean _notEquals = (_bitwiseAnd != 0);
          if (_notEquals) {
            Body _findBody = ErlDeltaProcessor.findBody(erlProject);
            final ErlProjectBody body = ((ErlProjectBody) _findBody);
            boolean _tripleNotEquals = (body != null);
            if (_tripleNotEquals) {
              body.setNonErlResources(null);
            }
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.