entity = (HttpEntity)input; else if (input instanceof Reader) entity = new StringEntity(IOUtils.read((Reader)input), getRequestContentType(TEXT_PLAIN)); else if (input instanceof InputStream) entity = new InputStreamEntity((InputStream)input, getRequestContentType(ContentType.APPLICATION_OCTET_STREAM)); else if (serializer != null) entity = new RestRequestEntity(input, serializer, requestBodySchema); else if (partSerializer != null) entity = new StringEntity(partSerializer.serialize((HttpPartSchema)null, input), getRequestContentType(TEXT_PLAIN)); else entity = new StringEntity(getBeanContext().getClassMetaForObject(input).toString(input), getRequestContentType(TEXT_PLAIN));
entity = (HttpEntity)input; else if (input instanceof Reader) entity = new StringEntity(IOUtils.read((Reader)input), getRequestContentType(TEXT_PLAIN)); else if (input instanceof InputStream) entity = new InputStreamEntity((InputStream)input, getRequestContentType(ContentType.APPLICATION_OCTET_STREAM)); else if (serializer != null) entity = new RestRequestEntity(input, serializer, requestBodySchema); else if (partSerializer != null) entity = new StringEntity(partSerializer.serialize((HttpPartSchema)null, input), getRequestContentType(TEXT_PLAIN)); else entity = new StringEntity(getBeanContext().getClassMetaForObject(input).toString(input), getRequestContentType(TEXT_PLAIN));
entity = (HttpEntity)input; else if (input instanceof Reader) entity = new StringEntity(IOUtils.read((Reader)input), getRequestContentType(TEXT_PLAIN)); else if (input instanceof InputStream) entity = new InputStreamEntity((InputStream)input, getRequestContentType(ContentType.APPLICATION_OCTET_STREAM)); else if (serializer != null) entity = new RestRequestEntity(input, serializer, requestBodySchema); else if (partSerializer != null) entity = new StringEntity(partSerializer.serialize((HttpPartSchema)null, input), getRequestContentType(TEXT_PLAIN)); else entity = new StringEntity(getBeanContext().getClassMetaForObject(input).toString(input), getRequestContentType(TEXT_PLAIN));