im.yixin.sdk.http.multipart
类 PartBase

java.lang.Object
  继承者 im.yixin.sdk.http.multipart.Part
      继承者 im.yixin.sdk.http.multipart.PartBase
直接已知子类:
FilePart, StringPart

public abstract class PartBase
extends Part

Provides setters and getters for the basic Part properties.


字段摘要
 
从类 im.yixin.sdk.http.multipart.Part 继承的字段
BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES
 
构造方法摘要
PartBase(java.lang.String name, java.lang.String contentType, java.lang.String charSet, java.lang.String transferEncoding)
          Constructor.
 
方法摘要
 java.lang.String getCharSet()
          Return the character encoding of this part.
 java.lang.String getContentType()
          Returns the content type of this part.
 java.lang.String getName()
          Returns the name.
 java.lang.String getTransferEncoding()
          Returns the transfer encoding of this part.
 void setCharSet(java.lang.String charSet)
          Sets the character encoding.
 void setContentType(java.lang.String contentType)
          Sets the content type.
 void setName(java.lang.String name)
          Sets the part name.
 void setTransferEncoding(java.lang.String transferEncoding)
          Sets the transfer encoding.
 
从类 im.yixin.sdk.http.multipart.Part 继承的方法
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, lengthOfData, send, sendContentTypeHeader, sendData, sendDispositionHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

PartBase

public PartBase(java.lang.String name,
                java.lang.String contentType,
                java.lang.String charSet,
                java.lang.String transferEncoding)
Constructor.

参数:
name - The name of the part
contentType - The content type, or null
charSet - The character encoding, or null
transferEncoding - The transfer encoding, or null
方法详细信息

getName

public java.lang.String getName()
Returns the name.

指定者:
Part 中的 getName
返回:
The name.
另请参见:
Part.getName()

getContentType

public java.lang.String getContentType()
Returns the content type of this part.

指定者:
Part 中的 getContentType
返回:
String The name.

getCharSet

public java.lang.String getCharSet()
Return the character encoding of this part.

指定者:
Part 中的 getCharSet
返回:
String The name.

getTransferEncoding

public java.lang.String getTransferEncoding()
Returns the transfer encoding of this part.

指定者:
Part 中的 getTransferEncoding
返回:
String The name.

setCharSet

public void setCharSet(java.lang.String charSet)
Sets the character encoding.

参数:
charSet - the character encoding, or null to exclude the character encoding header

setContentType

public void setContentType(java.lang.String contentType)
Sets the content type.

参数:
contentType - the content type, or null to exclude the content type header

setName

public void setName(java.lang.String name)
Sets the part name.

参数:
name -

setTransferEncoding

public void setTransferEncoding(java.lang.String transferEncoding)
Sets the transfer encoding.

参数:
transferEncoding - the transfer encoding, or null to exclude the transfer encoding header