|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.RMIMultiPartPost
Field Summary | |
private static boolean |
DEBUG
|
private FileUpload |
fup
|
private int |
operationStatus
|
private Vector |
postEntryV
|
private String |
queryStr
|
private int |
responseCode
|
private String |
responseString
|
private String |
serverClass
|
private String |
serverPostMethod
|
private MultiPartPostListener |
uploadListener
|
private boolean |
uploadToCacheOnly
|
Fields inherited from interface wt.clients.util.MultiPartPostIfc |
OPERATION_CANCEL, OPERATION_CANCEL_REQUEST, OPERATION_COMPLETE, OPERATION_FAILURE, OPERATION_INACTIVE, OPERATION_START |
Constructor Summary | |
RMIMultiPartPost(URL url)
Create a MultiPartPost object. |
|
RMIMultiPartPost(URL url,
boolean uploadToCacheOnly)
Create a MultiPartPost object and set the uploadToCacheOnly flag. |
Method Summary | |
void |
cancelOperation()
|
private void |
dumpPostEntries()
|
private void |
fileCleanup(Vector fileUploads)
|
FileUpload |
getFileUpload()
|
int |
getOperationStatus()
|
String |
getPostEntries()
|
int |
getResponseCode()
|
String |
getResponseString()
|
Thread |
performOperation(boolean separateThread)
Perform the multi part post operation. |
private static void |
PP(String message)
|
void |
setData(String contentName,
String value)
Record data to be posted. |
void |
setListener(MultiPartPostListener listener)
|
void |
setPath(String contentName,
String path)
Record file to be posted. |
void |
setServerClass(String serverClass)
Set the server class to receive this post data |
void |
setServerPostMethod(String serverPostMethod)
Set the method to receive this post data. |
private void |
uploadToCacheServer()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final boolean DEBUG
private FileUpload fup
private String queryStr
private Vector postEntryV
private String serverClass
private String serverPostMethod
private boolean uploadToCacheOnly
private int operationStatus
private int responseCode
private String responseString
private MultiPartPostListener uploadListener
Constructor Detail |
public RMIMultiPartPost(URL url, boolean uploadToCacheOnly)
url
- The url to post to. Takes the standard windchill url types
and parses out the server class and method which the post will send its
arguments to.uploadToCacheOnly
- Whether to upload to cache and return cache info,
rather than completing the saveContent (if true), or whether to complete
the saveContent without returning mid-stream cached content information (if false).public RMIMultiPartPost(URL url)
url
- The url to post to.Method Detail |
public void setListener(MultiPartPostListener listener)
public FileUpload getFileUpload()
public void setServerClass(String serverClass)
serverClass
- the server class capable of receiving
RMIMultiPartPost datapublic void setServerPostMethod(String serverPostMethod)
serverPostMethod
- the method to receive post data from
RMIMultiPartPost.public void setData(String contentName, String value)
setData
in interface MultiPartPostIfc
contentName
- the content name to be supplied in the post.public void setPath(String contentName, String path)
setPath
in interface MultiPartPostIfc
contentName
- the content name to be supplied in the post.path
- the path to the file.public int getOperationStatus()
getOperationStatus
in interface MultiPartPostIfc
public int getResponseCode()
getResponseCode
in interface MultiPartPostIfc
public String getResponseString()
getResponseString
in interface MultiPartPostIfc
public void cancelOperation()
cancelOperation
in interface MultiPartPostIfc
public Thread performOperation(boolean separateThread)
performOperation
in interface MultiPartPostIfc
FileNotFoundException
- thrown when file can't be found.
IOException
- This is not an expected exception, indicates a critical error.private void fileCleanup(Vector fileUploads)
private void uploadToCacheServer()
private void dumpPostEntries()
public String getPostEntries()
private static void PP(String message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |