"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/client/entity/EntityBuilder.java" between
httpcomponents-client-4.5.7-src.tar.gz and httpcomponents-client-4.5.8-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

EntityBuilder.java  (httpcomponents-client-4.5.7-src):EntityBuilder.java  (httpcomponents-client-4.5.8-src)
skipping to change at line 111 skipping to change at line 111
/** /**
* Sets entity content as a string. This method is mutually exclusive with: * Sets entity content as a string. This method is mutually exclusive with:
* <ul> * <ul>
* <li>{@link #setBinary(byte[])}</li> * <li>{@link #setBinary(byte[])}</li>
* <li>{@link #setStream(java.io.InputStream)}</li> * <li>{@link #setStream(java.io.InputStream)}</li>
* <li>{@link #setSerializable(java.io.Serializable)}</li> * <li>{@link #setSerializable(java.io.Serializable)}</li>
* <li>{@link #setParameters(java.util.List)}</li> * <li>{@link #setParameters(java.util.List)}</li>
* <li>{@link #setParameters(org.apache.http.NameValuePair...)}</li> * <li>{@link #setParameters(org.apache.http.NameValuePair...)}</li>
* <li>{@link #setFile(java.io.File)}</li> * <li>{@link #setFile(java.io.File)}</li>
* <ul> * </ul>
*/ */
public EntityBuilder setText(final String text) { public EntityBuilder setText(final String text) {
clearContent(); clearContent();
this.text = text; this.text = text;
return this; return this;
} }
/** /**
* Returns entity content as a byte array if set using * Returns entity content as a byte array if set using
* {@link #setBinary(byte[])} method. * {@link #setBinary(byte[])} method.
skipping to change at line 253 skipping to change at line 253
/** /**
* Sets entity content as a {@link File}. This method is mutually exclusive with: * Sets entity content as a {@link File}. This method is mutually exclusive with:
* <ul> * <ul>
* <li>{@link #setText(String)}</li> * <li>{@link #setText(String)}</li>
* <li>{@link #setBinary(byte[])}</li> * <li>{@link #setBinary(byte[])}</li>
* <li>{@link #setStream(java.io.InputStream)}</li> * <li>{@link #setStream(java.io.InputStream)}</li>
* <li>{@link #setParameters(java.util.List)}</li> * <li>{@link #setParameters(java.util.List)}</li>
* <li>{@link #setParameters(org.apache.http.NameValuePair...)}</li> * <li>{@link #setParameters(org.apache.http.NameValuePair...)}</li>
* <li>{@link #setSerializable(java.io.Serializable)}</li> * <li>{@link #setSerializable(java.io.Serializable)}</li>
* <ul> * </ul>
*/ */
public EntityBuilder setFile(final File file) { public EntityBuilder setFile(final File file) {
clearContent(); clearContent();
this.file = file; this.file = file;
return this; return this;
} }
/** /**
* Returns {@link ContentType} of the entity, if set. * Returns {@link ContentType} of the entity, if set.
*/ */
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)