Examples of Body


Examples of com.amazonaws.services.simpleemail.model.Body

        return request;
    }

    private com.amazonaws.services.simpleemail.model.Message createMessage(Exchange exchange) {
        com.amazonaws.services.simpleemail.model.Message message = new com.amazonaws.services.simpleemail.model.Message();
        message.setBody(new Body(new Content(exchange.getIn().getBody(String.class))));
        message.setSubject(new Content(determineSubject(exchange)));
        return message;
    }
View Full Code Here

Examples of com.apitrary.api.annotation.Body

  public static <T> String getRequestPayload(Request<T> request) {
    Class<?> referenceClazz = request.getClass();
    List<Field> fields = ClassUtil.getAnnotatedFields(referenceClazz, Body.class);
    List<String> objects = new LinkedList<String>();
    for (Field field : fields) {
      Body body = field.getAnnotation(Body.class);

      String asString = ClassUtil.getValueOf(field, request, referenceClazz, String.class);
      return (asString != null ? asString : "");
      // what if there are more bodies?!
    }
View Full Code Here

Examples of com.badlogic.gdx.physics.box2d.Body

    boxBodyDef.type = pBodyType;

    boxBodyDef.position.x = pCenterX / pPixelToMeterRatio;
    boxBodyDef.position.y = pCenterY / pPixelToMeterRatio;

    final Body boxBody = pPhysicsWorld.createBody(boxBodyDef);

    final PolygonShape boxPoly = new PolygonShape();

    final float halfWidth = pWidth * 0.5f / pPixelToMeterRatio;
    final float halfHeight = pHeight * 0.5f / pPixelToMeterRatio;

    boxPoly.setAsBox(halfWidth, halfHeight);
    pFixtureDef.shape = boxPoly;

    boxBody.createFixture(pFixtureDef);

    boxPoly.dispose();

    boxBody.setTransform(boxBody.getWorldCenter(), MathUtils.degToRad(pRotation));

    return boxBody;
  }
View Full Code Here

Examples of com.cloudcontrolled.api.annotation.Body

    MultivaluedMap<String, String> map = new BodyMultivaluedMap();

    Class<?> referenceClazz = request.getClass();
    List<Field> fields = ClassUtil.getAnnotatedFields(referenceClazz, Body.class);
    for (Field field : fields) {
      Body body = field.getAnnotation(Body.class);
      String parameter = body.value();

      // in case the value() is null or empty
      if (parameter == null || (parameter != null && parameter.isEmpty())) {
        parameter = field.getName();
      }
View Full Code Here

Examples of com.dgwave.osrs.jaxb.Body

      top.addItem(attributes);
     
      DataBlock dBlock = objFactory.createDataBlock();
      dBlock.addDtAssoc(top);
     
      Body body = objFactory.createBody();
      body.setDataBlock(dBlock);
     
      opsEnvelope.setBody(body);
     
      Marshaller m = jc.createMarshaller();
      m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
View Full Code Here

Examples of com.feth.play.module.mail.Mailer.Mail.Body

  @Override
  protected Body getVerifyEmailMailingBody(String verificationRecord,
      SignupUser user, Context ctx) {
    // No human will ever look at this body, so make it simple
    return new Body(verificationRecord);
  }
View Full Code Here

Examples of com.github.sommeri.less4j.core.ast.Body

  }

  private List<ASTCssNode> compileBody(Body body, IScope scopeSnapshot) {
    semiCompiledNodes.push(body.getParent());
    try {
      Body bodyClone = body.clone();
      parentSolver.unsafeDoSolveReferences(bodyClone, scopeSnapshot);
      return bodyClone.getMembers();
    } finally {
      semiCompiledNodes.pop();
    }
  }
View Full Code Here

Examples of com.ning.http.client.Body

                    post.setRequestHeader("Content-Length", String.valueOf(r.getContentLength()));
                } finally {
                    fis.close();
                }
            } else if (request.getBodyGenerator() != null) {
                Body body = request.getBodyGenerator().createBody();
                try {
                    int length = (int) body.getContentLength();
                    if (length < 0) {
                        length = (int) request.getContentLength();
                    }

                    // TODO: This is suboptimal
                    if (length >= 0) {
                        post.setRequestHeader("Content-Length", String.valueOf(length));

                        // This is totally sub optimal
                        byte[] bytes = new byte[length];
                        ByteBuffer buffer = ByteBuffer.wrap(bytes);
                        for (; ;) {
                            buffer.clear();
                            if (body.read(buffer) < 0) {
                                break;
                            }
                        }
                        post.setRequestEntity(new ByteArrayRequestEntity(bytes));
                    }
                } finally {
                    try {
                        body.close();
                    } catch (IOException e) {
                        logger.warn("Failed to close request body: {}", e.getMessage(), e);
                    }
                }
            }
View Full Code Here

Examples of com.sissi.protocol.message.Body

   *
   * @param content
   */
  public BindAddressCloseOthersProcessor(String content) {
    super();
    this.body = new Body(content);
  }
View Full Code Here

Examples of com.vtence.molecule.Body

        private void commit(org.simpleframework.http.Response simple, Response response) throws IOException {
            simple.setCode(response.statusCode());
            simple.setDescription(response.statusText());
            commitHeaders(simple, response);
            commitCookies(simple, response);
            Body body = response.body();
            body.writeTo(simple.getOutputStream(), response.charset());
            body.close();
        }
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.