|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.urlchecker.commands.AbstractCommand net.sf.urlchecker.commands.CheckUrlsGeneric<org.apache.http.client.HttpClient> net.sf.urlchecker.v2.commands.CheckUrlsCommand
public class CheckUrlsCommand
The Class CheckUrlsCommand for the new httpClient. Use this implementation together with the CommunicationBuilder in the v2.communication package if you want to move on to the new appache.http.client. The new Constructor in this class allows for deeper configuration of the execution environment.
$Id: CheckUrlsCommand.java 183 2010-12-17 19:10:21Z georgosn $
Field Summary | |
---|---|
protected org.apache.http.protocol.HttpContext |
localContext
The local context. |
Fields inherited from class net.sf.urlchecker.commands.CheckUrlsGeneric |
---|
client, TERMINATION_TIME_IN_SECONDS, terminationTime |
Constructor Summary | |
---|---|
CheckUrlsCommand(Command successor,
org.apache.http.client.HttpClient newClient)
Instantiates a new check URLs command. |
|
CheckUrlsCommand(Command successor,
org.apache.http.client.HttpClient newClient,
org.apache.http.protocol.HttpContext foreignContext)
Instantiates a new check URLs command. |
Method Summary | |
---|---|
boolean |
isMultithreaded()
Checks if the client is set up for multithreaded operation. |
protected void |
multithreadedExecution(Context context,
Iterator<Result> iter)
Spawns threads to check individual URLs. |
protected void |
singlethreadedExecution(Iterator<Result> iter)
Executes checking using one thread for all URLs to check. |
Methods inherited from class net.sf.urlchecker.commands.CheckUrlsGeneric |
---|
process |
Methods inherited from class net.sf.urlchecker.commands.AbstractCommand |
---|
fireEvent, getSuccessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.http.protocol.HttpContext localContext
Constructor Detail |
---|
public CheckUrlsCommand(Command successor, org.apache.http.client.HttpClient newClient)
successor
- the successornewClient
- the new clientpublic CheckUrlsCommand(Command successor, org.apache.http.client.HttpClient newClient, org.apache.http.protocol.HttpContext foreignContext)
successor
- the successornewClient
- the new clientforeignContext
- the foreign contextMethod Detail |
---|
public boolean isMultithreaded()
isMultithreaded
in class CheckUrlsGeneric<org.apache.http.client.HttpClient>
protected void multithreadedExecution(Context context, Iterator<Result> iter) throws org.apache.commons.configuration.ConfigurationException
multithreadedExecution
in class CheckUrlsGeneric<org.apache.http.client.HttpClient>
context
- , the enginge's contextiter
- , the valid context results iterator to check over the
Internet.
org.apache.commons.configuration.ConfigurationException
- the configuration exceptionprotected void singlethreadedExecution(Iterator<Result> iter) throws org.apache.commons.configuration.ConfigurationException
singlethreadedExecution
in class CheckUrlsGeneric<org.apache.http.client.HttpClient>
iter
- , the valid context results iterator to check over the
Internet.
org.apache.commons.configuration.ConfigurationException
- the configuration exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |