com.intellij.util.net
Class HttpConfigurable

java.lang.Object
  extended by com.intellij.util.net.HttpConfigurable
All Implemented Interfaces:
ApplicationComponent, BaseComponent, JDOMExternalizable

public class HttpConfigurable
extends java.lang.Object
implements JDOMExternalizable, ApplicationComponent

Created by IntelliJ IDEA. User: stathik Date: Oct 7, 2003 Time: 3:58:23 PM To change this template use Options | File Templates.


Field Summary
 boolean KEEP_PROXY_PASSWORD
           
 boolean PROXY_AUTHENTICATION
           
 java.lang.String PROXY_HOST
           
 java.lang.String PROXY_LOGIN
           
 java.lang.String PROXY_PASSWORD_CRYPT
           
 int PROXY_PORT
           
 boolean USE_HTTP_PROXY
           
 
Constructor Summary
HttpConfigurable()
           
 
Method Summary
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 java.lang.String getComponentName()
          Unique name of this component.
static HttpConfigurable getInstance()
           
 java.lang.String getPlainProxyPassword()
           
 void initComponent()
          Component should do initialization and communication with another components in this method.
 void prepareURL(java.lang.String url)
          Call this function before every HTTP connection.
 void readExternal(org.jdom.Element element)
           
 void setPlainProxyPassword(java.lang.String password)
           
 void writeExternal(org.jdom.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_HTTP_PROXY

public boolean USE_HTTP_PROXY

PROXY_HOST

public java.lang.String PROXY_HOST

PROXY_PORT

public int PROXY_PORT

PROXY_AUTHENTICATION

public boolean PROXY_AUTHENTICATION

PROXY_LOGIN

public java.lang.String PROXY_LOGIN

PROXY_PASSWORD_CRYPT

public java.lang.String PROXY_PASSWORD_CRYPT

KEEP_PROXY_PASSWORD

public boolean KEEP_PROXY_PASSWORD
Constructor Detail

HttpConfigurable

public HttpConfigurable()
Method Detail

getInstance

public static HttpConfigurable getInstance()

readExternal

public void readExternal(org.jdom.Element element)
                  throws InvalidDataException
Specified by:
readExternal in interface JDOMExternalizable
Throws:
InvalidDataException

writeExternal

public void writeExternal(org.jdom.Element element)
                   throws WriteExternalException
Specified by:
writeExternal in interface JDOMExternalizable
Throws:
WriteExternalException

getComponentName

public java.lang.String getComponentName()
Description copied from interface: BaseComponent
Unique name of this component. If there is another component with the same name or name is null internal assertion will occur.

Specified by:
getComponentName in interface BaseComponent
Returns:
the name of this component

initComponent

public void initComponent()
Description copied from interface: BaseComponent
Component should do initialization and communication with another components in this method.

Specified by:
initComponent in interface BaseComponent

disposeComponent

public void disposeComponent()
Description copied from interface: BaseComponent
Component should dispose system resources or perform another cleanup in this method.

Specified by:
disposeComponent in interface BaseComponent

getPlainProxyPassword

public java.lang.String getPlainProxyPassword()

setPlainProxyPassword

public void setPlainProxyPassword(java.lang.String password)

prepareURL

public void prepareURL(java.lang.String url)
                throws java.io.IOException
Call this function before every HTTP connection. If system configured to use HTTP proxy, this function checks all required parameters and ask password if required.

Parameters:
url - URL for HTTP connection
Throws:
java.io.IOException