001    package railo.commons.net;
002    
003    import java.io.IOException;
004    import java.io.OutputStream;
005    
006    import org.apache.commons.httpclient.methods.multipart.StringPart;
007    
008    public class RailoStringPart extends StringPart {
009    
010            private String value;
011    
012            public RailoStringPart(String name, String value) {
013                    super(name, value);
014                    this.value=value;
015            }
016            
017            public RailoStringPart(String name, String value, String charset) {
018                    super(name, value, charset);
019                    this.value=value;               
020            }
021    
022            /**
023             * @return the value
024             */
025            public String getValue() {
026                    return value;
027            }
028            /**
029         * Write the disposition header to the output stream
030         * @param out The output stream
031         * @throws IOException If an IO problem occurs
032         * @see Part#sendDispositionHeader(OutputStream)
033         */
034            protected void sendDispositionHeader(OutputStream out)  throws IOException {
035                    ResourcePart.sendDispositionHeader(getName(),null,getCharSet(),out);
036            }
037    
038    }