com.javactionscript.server
Class RemoteTransactionProperties

java.lang.Object
  extended by com.javactionscript.server.RemoteTransactionProperties

public class RemoteTransactionProperties
extends java.lang.Object

The configuration parameters used by the RemoteTransaction instances.
The RemoteTransactionProperties object can be accessed from inside the ContextFactory constructor override.


Field Summary
 long maxRequestSize
          The maximum size of a HTTP request, in bytes.
 long maxUploadSize
          The maximum size allowed for one incoming upload file, in bytes.
static int MULTIPART_FORBID_UPLOAD_FILES
          With this mode each RemoteTransaction that receives one or more upload files will be aborted and will return an error response (requires that Jakarta Commons fileUpload library (commons-fileupload.jar) is accessible from the web application)
The multipart request will be read using the streaming API.
static int MULTIPART_IGNORE_UPLOAD_FILES
          With this mode all the incoming upload files will be ignored but the RemoteTransaction will still be executed (requires that Jakarta Commons fileUpload library (commons-fileupload.jar) is accessible from the web application)
The multipart request will be read using the streaming API.
static int MULTIPART_NOT_ALLOWED
          With this mode all the multipart requests will be rejected and will fill the TransactionOutput with the error description.
static int MULTIPART_SAVE_UPLOAD_FILES_IN_FOLDER_AND_DELETE_AT_TRANSACTION_CLOSE
          With this mode the incoming upload files will be saved temporary during the RemoteTransaction life and deleted automatically once the RemoteTransaction is closed (requires that Jakarta Commons fileUpload library (commons-fileupload.jar) is accessible from the web application)
The multipart request will be read using the streaming API.
 int multipartMode
          Defines if the multipart requests are allowed and how the incoming upload files will be handled.
 
Constructor Summary
RemoteTransactionProperties()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxRequestSize

public long maxRequestSize
The maximum size of a HTTP request, in bytes. Greater requests will be rejected.


maxUploadSize

public long maxUploadSize
The maximum size allowed for one incoming upload file, in bytes. For bigger files, RemoteTransaction will be aborted and will return an error response.


multipartMode

public int multipartMode
Defines if the multipart requests are allowed and how the incoming upload files will be handled.
Valid values are:
MULTIPART_FORBID_UPLOAD_FILES
MULTIPART_IGNORE_UPLOAD_FILES
MULTIPART_NOT_ALLOWED
MULTIPART_SAVE_UPLOAD_FILES_IN_FOLDER_AND_DELETE_AT_TRANSACTION_CLOSE


MULTIPART_NOT_ALLOWED

public static final int MULTIPART_NOT_ALLOWED
With this mode all the multipart requests will be rejected and will fill the TransactionOutput with the error description.

See Also:
Constant Field Values

MULTIPART_IGNORE_UPLOAD_FILES

public static final int MULTIPART_IGNORE_UPLOAD_FILES
With this mode all the incoming upload files will be ignored but the RemoteTransaction will still be executed (requires that Jakarta Commons fileUpload library (commons-fileupload.jar) is accessible from the web application)
The multipart request will be read using the streaming API.

See Also:
Constant Field Values

MULTIPART_FORBID_UPLOAD_FILES

public static final int MULTIPART_FORBID_UPLOAD_FILES
With this mode each RemoteTransaction that receives one or more upload files will be aborted and will return an error response (requires that Jakarta Commons fileUpload library (commons-fileupload.jar) is accessible from the web application)
The multipart request will be read using the streaming API.

See Also:
Constant Field Values

MULTIPART_SAVE_UPLOAD_FILES_IN_FOLDER_AND_DELETE_AT_TRANSACTION_CLOSE

public static final int MULTIPART_SAVE_UPLOAD_FILES_IN_FOLDER_AND_DELETE_AT_TRANSACTION_CLOSE
With this mode the incoming upload files will be saved temporary during the RemoteTransaction life and deleted automatically once the RemoteTransaction is closed (requires that Jakarta Commons fileUpload library (commons-fileupload.jar) is accessible from the web application)
The multipart request will be read using the streaming API.

See Also:
Constant Field Values
Constructor Detail

RemoteTransactionProperties

public RemoteTransactionProperties()


Copyright 2008 LUNAFELINA - www.javactionscript.com - www.lunafelina.com