Class ControllerThreadSocketFactory.SocketTask
- java.lang.Object
-
- org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory.SocketTask
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- ControllerThreadSocketFactory
public abstract static class ControllerThreadSocketFactory.SocketTask extends Object implements Runnable
Helper class for wrapping socket based tasks.
-
-
Constructor Summary
Constructors Constructor Description SocketTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddoit()Perform the logic.protected SocketgetSocket()Return the socket.voidrun()Execute the logic in this object and keep track of any exceptions.protected voidsetSocket(Socket newSocket)Set the socket.
-
-
-
Method Detail
-
setSocket
protected void setSocket(Socket newSocket)
Set the socket.- Parameters:
newSocket- The new socket.
-
getSocket
protected Socket getSocket()
Return the socket.- Returns:
- Socket The socket.
-
doit
public abstract void doit() throws IOExceptionPerform the logic.- Throws:
IOException- If an IO problem occurs
-
-