|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.sf.urlchecker.communication.GenericCommunicationFactory<org.apache.commons.httpclient.HttpClient,org.apache.commons.httpclient.HttpConnectionManager,HTTPMethods,org.apache.commons.httpclient.HttpMethod>
net.sf.urlchecker.communication.CommunicationFactory
public final class CommunicationFactory
A FACTORY for creating Communication objects.
$Id: CommunicationFactory.java 182 2010-12-13 22:51:53Z georgosn $
| Field Summary |
|---|
| Fields inherited from class net.sf.urlchecker.communication.GenericCommunicationFactory |
|---|
client, configured, DEFAULT_PATTERN, exceptionHandlers, FILE_NOT_FOUND, fileName, HTTPCONFIGURATION_FILENAME, LOGGER, manager, maxretries, methods, multithreaded, NO_CONFIG, urlpattern, validCodes, WARNINGS |
| Method Summary | |
|---|---|
org.apache.commons.httpclient.HttpClient |
configureClient(boolean localThreadSceme)
Configure client. |
org.apache.commons.httpclient.HttpClient |
configureClient(boolean localThreadSceme,
String FileName)
Configure client. |
static CommunicationFactory |
getInstance()
Returns the single instance of CommunicationFactory. |
org.apache.commons.httpclient.HttpMethod |
getMethod(String source)
Returns the method. |
HTTPMethods |
getMethodType(String source)
Returns the method type. |
void |
shutdown()
Shuts down the client. |
| Methods inherited from class net.sf.urlchecker.communication.GenericCommunicationFactory |
|---|
getExceptionHandlers, getMaxretries, getOnlyValidCodes, getUrlpattern, getValidCodes, isConfigured, isMultiThreaded, isValidResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CommunicationFactory getInstance()
public org.apache.commons.httpclient.HttpClient configureClient(boolean localThreadSceme)
throws org.apache.commons.configuration.ConfigurationException
configureClient in class GenericCommunicationFactory<org.apache.commons.httpclient.HttpClient,org.apache.commons.httpclient.HttpConnectionManager,HTTPMethods,org.apache.commons.httpclient.HttpMethod>localThreadSceme - the multi threaded
org.apache.commons.configuration.ConfigurationException - the configuration exception
public org.apache.commons.httpclient.HttpClient configureClient(boolean localThreadSceme,
String FileName)
throws org.apache.commons.configuration.ConfigurationException
configureClient in class GenericCommunicationFactory<org.apache.commons.httpclient.HttpClient,org.apache.commons.httpclient.HttpConnectionManager,HTTPMethods,org.apache.commons.httpclient.HttpMethod>localThreadSceme - the local thread scemeFileName - the file name
org.apache.commons.configuration.ConfigurationException - the configuration exceptionpublic org.apache.commons.httpclient.HttpMethod getMethod(String source)
getMethod in class GenericCommunicationFactory<org.apache.commons.httpclient.HttpClient,org.apache.commons.httpclient.HttpConnectionManager,HTTPMethods,org.apache.commons.httpclient.HttpMethod>source - the source
public HTTPMethods getMethodType(String source)
getMethodType in class GenericCommunicationFactory<org.apache.commons.httpclient.HttpClient,org.apache.commons.httpclient.HttpConnectionManager,HTTPMethods,org.apache.commons.httpclient.HttpMethod>source - the source
public void shutdown()
shutdown in class GenericCommunicationFactory<org.apache.commons.httpclient.HttpClient,org.apache.commons.httpclient.HttpConnectionManager,HTTPMethods,org.apache.commons.httpclient.HttpMethod>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||