org.apache.commons.jelly.tags.http
Class PartTag.MyStringPart

java.lang.Object
  extended by org.apache.commons.httpclient.methods.multipart.Part
      extended by org.apache.commons.httpclient.methods.multipart.PartBase
          extended by org.apache.commons.httpclient.methods.multipart.StringPart
              extended by org.apache.commons.jelly.tags.http.PartTag.MyStringPart
Enclosing class:
PartTag

private class PartTag.MyStringPart
extends org.apache.commons.httpclient.methods.multipart.StringPart

Extend StringPart so that I can specify the content type (ex: text/plain)


Field Summary
(package private)  java.lang.String _contentType
           
 
Fields inherited from class org.apache.commons.httpclient.methods.multipart.StringPart
DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING
 
Fields inherited from class org.apache.commons.httpclient.methods.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
 
Constructor Summary
PartTag.MyStringPart(java.lang.String name, java.lang.String value, java.lang.String contentType)
           
 
Method Summary
 java.lang.String getContentType()
           
 
Methods inherited from class org.apache.commons.httpclient.methods.multipart.StringPart
lengthOfData, sendData, setCharSet
 
Methods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase
getCharSet, getName, getTransferEncoding, setContentType, setName, setTransferEncoding
 
Methods inherited from class org.apache.commons.httpclient.methods.multipart.Part
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, send, sendContentTypeHeader, sendDispositionHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_contentType

java.lang.String _contentType
Constructor Detail

PartTag.MyStringPart

public PartTag.MyStringPart(java.lang.String name,
                            java.lang.String value,
                            java.lang.String contentType)
Method Detail

getContentType

public java.lang.String getContentType()
Overrides:
getContentType in class org.apache.commons.httpclient.methods.multipart.PartBase