org.hd.d.pg2k.svrCore.uploader
Class UploaderConsts

java.lang.Object
  extended by org.hd.d.pg2k.svrCore.uploader.UploaderConsts

public final class UploaderConsts
extends java.lang.Object

Constants pertaining to exhibit upload. Some of these may be set dynamically in future, ie from GenProps or similar.


Field Summary
static java.lang.String attrUIB
          Attribute name under which we store UploadInfoBean.
static int BATCH_UPLOAD_MAX_IDLE_MS
          Maximum time uploader connection should stay idle before being shut, ms; strictly positive.
static boolean BATCH_UPLOADS_CAN_BE_PIPELINED
          If true, then we can pipeline multiple batch uploads in one POST to the non-browser upload servlet.
static java.lang.String exhibitFile
          Name of parameter containing exhibit file for upload.
static java.lang.String LOGGED_IN_HEADER
          Header name on login page to indicate user is logged in.
static java.lang.String LOGIN_URL
          Login page root-relative URL (starting with '/').
static java.lang.String LOGOUT_FIELD_NAME
          Field name to be present to upload or login pages to force a logout.
static int MIN_UPLOAD_SPACE_BYTES
          Minimum free space we will contemplate even attempting an upload at.
static java.lang.String PASSWD_FIELD_NAME
          Form field name for user password.
static java.lang.String searchWindow
          Hopefully-unique (but constant between runs) window name to place search page in.
static java.lang.String USERID_FIELD_NAME
          Attribute (and form field) name under which we store (verified) contributor ID (initials).
 
Constructor Summary
UploaderConsts()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchWindow

public static final java.lang.String searchWindow
Hopefully-unique (but constant between runs) window name to place search page in.

See Also:
Constant Field Values

USERID_FIELD_NAME

public static final java.lang.String USERID_FIELD_NAME
Attribute (and form field) name under which we store (verified) contributor ID (initials). Prefix with "X-" to use as an HTTP header.

See Also:
Constant Field Values

PASSWD_FIELD_NAME

public static final java.lang.String PASSWD_FIELD_NAME
Form field name for user password. Prefix with "X-" to use as an HTTP header.

See Also:
Constant Field Values

attrUIB

public static final java.lang.String attrUIB
Attribute name under which we store UploadInfoBean.

See Also:
Constant Field Values

exhibitFile

public static final java.lang.String exhibitFile
Name of parameter containing exhibit file for upload.

See Also:
Constant Field Values

LOGOUT_FIELD_NAME

public static final java.lang.String LOGOUT_FIELD_NAME
Field name to be present to upload or login pages to force a logout.

See Also:
Constant Field Values

LOGGED_IN_HEADER

public static final java.lang.String LOGGED_IN_HEADER
Header name on login page to indicate user is logged in. Must start with "X-" to avoid breaking any other code.

See Also:
Constant Field Values

LOGIN_URL

public static final java.lang.String LOGIN_URL
Login page root-relative URL (starting with '/').

See Also:
Constant Field Values

MIN_UPLOAD_SPACE_BYTES

public static final int MIN_UPLOAD_SPACE_BYTES
Minimum free space we will contemplate even attempting an upload at. Note that this had probably better be at least a couple of blocks, to represent filesystem consumption for directory and file data, and anyway tiny uploads are not likely to be much use!

See Also:
Constant Field Values

BATCH_UPLOADS_CAN_BE_PIPELINED

public static final boolean BATCH_UPLOADS_CAN_BE_PIPELINED
If true, then we can pipeline multiple batch uploads in one POST to the non-browser upload servlet.

See Also:
Constant Field Values

BATCH_UPLOAD_MAX_IDLE_MS

public static final int BATCH_UPLOAD_MAX_IDLE_MS
Maximum time uploader connection should stay idle before being shut, ms; strictly positive. As connections for batch uploads are non-interactive this need only be long enough to allow for:

This period applies while no upload is in progress; a somewhat longer timeout should apply during upload to avoid glitches forcing an upload to be started again later.

A few tens of seconds should suffice, and help free unused resources quickly.

See Also:
Constant Field Values
Constructor Detail

UploaderConsts

public UploaderConsts()

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.