Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

FormPoster

The FormPoster class provides methods for constructing and posting multipart mime-encoded messages, the same kind of message format that a Web browser can use to post the results of an HTML form.

The FormPoster class is the basis for the XMLPost utility, which enables you to load XML-encoded data into content catalogs managed by Sites. If you do not want to use the XMLPost utility, you can use the FormPoster class to write your own utility.

The FormPoster class extends the java.lang.Object


 

List of Fields
Constant Meaning Code
ERRORSUCCESS Success 0
ERRORNOCONSERVER Cannot connect to server error -1
ERRORNETDISCONNECT Network disconnected error -2
ERRORNOURLPARAM Bad URL input parameters error -3
ERRORTIMEOUT Network timeout forced error -4
ERRORBADRESPONSE Server response did not contain handshake code error -5
ERRORNOTAUTHENTICATED Server certificate does not match what is expected error -6
ERROROUTOFMEMORY Out of memory reading a server response error -7
ERRORGENERAL General error -8
ERRORFILEIO File I/O error -9
ERRORILLEGALDATAFORACTION File data used with Get method error. -10

 



List of Other Fields

HTTPVERSION10 HTTP 1.0 flag
HTTPVERSION11 HTTP 1.1 flag
Post POST action
Get GET action

 



Constructor



List of Methods

addFile addFileData addTextValue
addURL cleanResponse cleanRawResponse
findAllCookies findCookie getCookieArray
getCookies getHTTPStatusCode getHTTPStatusText
getLastError getLastErrorStr getLastErrorText
getOutputFileSpec getRawResponse getResponse
getServletCookies login post
postProcessMIMEHeader registerMIMENotifier reset
setAction setAuthenticationParameters setBodyData
setBodyStream setCharacterEncoding setCookies
setDump setEncodeURL setHeaderInformation
setHTTPVersion setLog setOutputDirectory
setOutputStream setPort setProxy
setProxyPort setSecureProtocol setTimeout
setURL

 

  Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.