Esri Geoportal Server
1.2.9

com.esri.gpt.framework.http.multipart
Interface PartWriter


public interface PartWriter

Single part writer.


Method Summary
 void write(String name, byte[] bytes, String fileName, String contentType, String charset)
          Uploads bytes.
 void write(String name, File file, String fileName, String contentType, String charset, boolean deleteAfterUpload)
          Uploads a file.
 void write(String name, String value)
          Write ordinary attribute.
 

Method Detail

write

void write(String name,
           String value)
           throws IOException
Write ordinary attribute.

Parameters:
name - part name.
value - part value
Throws:
IOException - if writing fails

write

void write(String name,
           File file,
           String fileName,
           String contentType,
           String charset,
           boolean deleteAfterUpload)
           throws IOException
Uploads a file.

Parameters:
name - part name
file - file to upload
fileName - disposition file name
contentType - content type
charset - character set
deleteAfterUpload - true to delete file after upload
Throws:
IOException - if writing fails

write

void write(String name,
           byte[] bytes,
           String fileName,
           String contentType,
           String charset)
           throws IOException
Uploads bytes.

Parameters:
name - part name
bytes - bytes to upload
fileName - disposition file name
contentType - content type
charset - character set
Throws:
IOException - if writing fails

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.