|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.urlchecker.communication.GenericCommunicationFactory<org.apache.http.client.HttpClient,org.apache.http.conn.ClientConnectionManager,HTTPMethods,org.apache.http.client.methods.HttpRequestBase> net.sf.urlchecker.v2.communication.CommunicationFactory
public class CommunicationFactory
A factory for creating Communication objects.
$Id: CommunicationFactory.java 183 2010-12-17 19:10:21Z 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.http.client.HttpClient |
configureClient(boolean localThreadSceme)
Configure client. |
org.apache.http.client.HttpClient |
configureClient(boolean localThreadSceme,
String FileName)
Configure client. |
static CommunicationFactory |
getInstance()
Gets the single instance of CommunicationFactory. |
org.apache.http.client.methods.HttpRequestBase |
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.http.client.HttpClient configureClient(boolean localThreadSceme) throws org.apache.commons.configuration.ConfigurationException
configureClient
in class GenericCommunicationFactory<org.apache.http.client.HttpClient,org.apache.http.conn.ClientConnectionManager,HTTPMethods,org.apache.http.client.methods.HttpRequestBase>
localThreadSceme
- the multi threaded
org.apache.commons.configuration.ConfigurationException
- the configuration exceptionpublic org.apache.http.client.HttpClient configureClient(boolean localThreadSceme, String FileName) throws org.apache.commons.configuration.ConfigurationException
configureClient
in class GenericCommunicationFactory<org.apache.http.client.HttpClient,org.apache.http.conn.ClientConnectionManager,HTTPMethods,org.apache.http.client.methods.HttpRequestBase>
localThreadSceme
- the local thread scemeFileName
- the file name
org.apache.commons.configuration.ConfigurationException
- the configuration exceptionpublic org.apache.http.client.methods.HttpRequestBase getMethod(String source)
getMethod
in class GenericCommunicationFactory<org.apache.http.client.HttpClient,org.apache.http.conn.ClientConnectionManager,HTTPMethods,org.apache.http.client.methods.HttpRequestBase>
source
- the source
public HTTPMethods getMethodType(String source)
getMethodType
in class GenericCommunicationFactory<org.apache.http.client.HttpClient,org.apache.http.conn.ClientConnectionManager,HTTPMethods,org.apache.http.client.methods.HttpRequestBase>
source
- the source
public void shutdown()
shutdown
in class GenericCommunicationFactory<org.apache.http.client.HttpClient,org.apache.http.conn.ClientConnectionManager,HTTPMethods,org.apache.http.client.methods.HttpRequestBase>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |