com.jscape.inet.mft.management.descriptors
Class HttpConfiguration

java.lang.Object
  extended by com.jscape.inet.mft.management.descriptors.HttpConfiguration
All Implemented Interfaces:
Configuration

public class HttpConfiguration
extends java.lang.Object
implements Configuration

HTTP service descriptor.


Field Summary
static int DEFAULT_TIMEOUT
          Default connection timeout of 600,000 ms.
static java.lang.String LOGO_PIC
           
 
Constructor Summary
HttpConfiguration()
          Creates new instance.
HttpConfiguration(HttpConfiguration that)
          Creates new instance from existing instance.
HttpConfiguration(com.jscape.util.TaggedProperties[] languages, com.jscape.util.serialization.xml.ByteArrayShell logo, AutoLogoutTimeout autoLogoutTimeout, boolean showButtonsShortcuts, java.lang.String redirectionUrl, boolean showLoginInfo, boolean showAccountLink, long connectionTimeout, boolean showTransferType)
          Creates new instance.
 
Method Summary
 void correctLanguages(com.jscape.util.TaggedProperties original)
          Resets language resources to provided defaults.
 AutoLogoutTimeout getAutoLogoutTimeout()
          Gets automatic inactivity logout descriptor.
 long getConnectionTimeout()
          Gets HTTP connection timeout in ms.
 com.jscape.util.TaggedProperties[] getLanguages()
          Gets language resources.
 com.jscape.util.serialization.xml.ByteArrayShell getLogo()
          Gets logo.
 byte[] getLogoBytes()
          Gets raw logo image data.
 java.lang.String getRedirectionUrl()
          Returns logout redirection URL.
 boolean getShowAccountLink()
          Gets whether accoun link is shown in web interface.
 boolean getShowButtonsShortcuts()
          Gets whether button shortcuts are enabled.
 boolean getShowLoginInfo()
          Gets whether login information is shown in web interface.
 boolean getShowTransferType()
          Gets whether transfer type is shown in web interface.
 void setAutoLogoutTimeout(AutoLogoutTimeout value)
          Sets automatic inactivity logout descriptor.
 void setConnectionTimeout(long value)
          Sets HTTP connection timeout in ms.
 void setLanguages(com.jscape.util.TaggedProperties[] value)
          Sets language resources.
 void setLogo(com.jscape.util.serialization.xml.ByteArrayShell value)
          Sets logo.
 void setRedirectionUrl(java.lang.String value)
          Sets logout redirection URL.
 void setShowAccountLink(boolean value)
          Sets whether accoun link is shown in web interface.
 void setShowButtonsShortcuts(boolean value)
          Sets whether button shortcuts are enabled.
 void setShowLoginInfo(boolean value)
          Sets whether login information is shown in web interface.
 void setShowTransferType(boolean value)
          Sets whether transfer type is shown in web interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
Default connection timeout of 600,000 ms.

See Also:
Constant Field Values

LOGO_PIC

public static final java.lang.String LOGO_PIC
See Also:
Constant Field Values
Constructor Detail

HttpConfiguration

public HttpConfiguration(com.jscape.util.TaggedProperties[] languages,
                         com.jscape.util.serialization.xml.ByteArrayShell logo,
                         AutoLogoutTimeout autoLogoutTimeout,
                         boolean showButtonsShortcuts,
                         java.lang.String redirectionUrl,
                         boolean showLoginInfo,
                         boolean showAccountLink,
                         long connectionTimeout,
                         boolean showTransferType)
Creates new instance.

Parameters:
languages - language-related strings
logo - logo data
autoLogoutTimeout - auto logout timeout in ms
showButtonsShortcuts - show buttons shortcuts flag
redirectionUrl - redirection URL
showLoginInfo - show login info flag
showAccountLink - show account link flag
connectionTimeout - connection timeout in ms
showTransferType - show transfer type flag

HttpConfiguration

public HttpConfiguration(HttpConfiguration that)
Creates new instance from existing instance.

Parameters:
that - existing instance

HttpConfiguration

public HttpConfiguration()
Creates new instance.

Method Detail

getLanguages

public com.jscape.util.TaggedProperties[] getLanguages()
Gets language resources.

Returns:
language-related resources

setLanguages

public void setLanguages(com.jscape.util.TaggedProperties[] value)
Sets language resources.

Parameters:
value - language-related resources

getLogo

public com.jscape.util.serialization.xml.ByteArrayShell getLogo()
Gets logo.

Returns:
logo data

getLogoBytes

public byte[] getLogoBytes()
Gets raw logo image data.

Returns:
logo data as byte array

setLogo

public void setLogo(com.jscape.util.serialization.xml.ByteArrayShell value)
Sets logo.

Parameters:
value - sets logo data

getAutoLogoutTimeout

public AutoLogoutTimeout getAutoLogoutTimeout()
Gets automatic inactivity logout descriptor.

Returns:
AutoLogoutTimeout descriptor

setAutoLogoutTimeout

public void setAutoLogoutTimeout(AutoLogoutTimeout value)
Sets automatic inactivity logout descriptor.

Parameters:
value - AutoLogoutTimeout descriptor

getShowButtonsShortcuts

public boolean getShowButtonsShortcuts()
Gets whether button shortcuts are enabled.

Returns:
true if enabled, false otherwise

setShowButtonsShortcuts

public void setShowButtonsShortcuts(boolean value)
Sets whether button shortcuts are enabled.

Parameters:
value - true if enabled, false otherwise

getRedirectionUrl

public java.lang.String getRedirectionUrl()
Returns logout redirection URL.

Returns:
logout redirection URL

setRedirectionUrl

public void setRedirectionUrl(java.lang.String value)
Sets logout redirection URL.

Parameters:
value - logout redirection URL

getShowLoginInfo

public boolean getShowLoginInfo()
Gets whether login information is shown in web interface.

Returns:
true if enabled, false otherwise

setShowLoginInfo

public void setShowLoginInfo(boolean value)
Sets whether login information is shown in web interface.

Parameters:
value - true if enabled, false otherwise

getShowAccountLink

public boolean getShowAccountLink()
Gets whether accoun link is shown in web interface.

Returns:
true if enabled, false otherwise

setShowAccountLink

public void setShowAccountLink(boolean value)
Sets whether accoun link is shown in web interface.

Parameters:
value - true if enabled, false otherwise

getConnectionTimeout

public long getConnectionTimeout()
Gets HTTP connection timeout in ms.

Returns:
timeout in ms

setConnectionTimeout

public void setConnectionTimeout(long value)
Sets HTTP connection timeout in ms.

Parameters:
value - timeout in ms

getShowTransferType

public boolean getShowTransferType()
Gets whether transfer type is shown in web interface.

Returns:
true if enabled, false otherwise

setShowTransferType

public void setShowTransferType(boolean value)
Sets whether transfer type is shown in web interface.

Parameters:
value - true if enabled, false otherwise

correctLanguages

public void correctLanguages(com.jscape.util.TaggedProperties original)
Resets language resources to provided defaults.

Parameters:
original - the default language resources


Copyright © 2007 JSCAPE Corp. All Rights Reserved.