com.foxinmy.weixin4j.http.entity
Class StringEntity
java.lang.Object
com.foxinmy.weixin4j.http.entity.StringEntity
- All Implemented Interfaces:
- HttpEntity
- Direct Known Subclasses:
- FormUrlEntity
public class StringEntity
- extends Object
- implements HttpEntity
StringEntity
public StringEntity(String body)
StringEntity
public StringEntity(String body,
ContentType contentType)
getContentType
public ContentType getContentType()
- Specified by:
getContentType in interface HttpEntity
getContentLength
public long getContentLength()
- Specified by:
getContentLength in interface HttpEntity
getContent
public InputStream getContent()
throws IOException
- Specified by:
getContent in interface HttpEntity
- Throws:
IOException
writeTo
public void writeTo(OutputStream outstream)
throws IOException
- Specified by:
writeTo in interface HttpEntity
- Throws:
IOException
getContentString
public String getContentString()
Copyright © 2014–2017. All rights reserved.