Interface ISimpleHttpFileServer
-
- All Known Implementing Classes:
SimpleHttpFileServer
public interface ISimpleHttpFileServer
Implementation of a Web server that serves one file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCallCount()
Throwable
getException()
URL
getURL()
void
setFile(Deployable deployable, String keepOriginalWarFilename)
void
setFileHandler(FileHandler fileHandler)
void
setListeningParameters(InetSocketAddress listenSocket, String remoteDeployAddress)
void
setLogger(Logger logger)
void
start()
starts the server.void
stop()
stops the server.
-
-
-
Method Detail
-
setFileHandler
void setFileHandler(FileHandler fileHandler)
- Parameters:
fileHandler
- file handler to use.
-
setLogger
void setLogger(Logger logger)
- Parameters:
logger
- logger to use.
-
setFile
void setFile(Deployable deployable, String keepOriginalWarFilename)
- Parameters:
deployable
- deployable to handle.keepOriginalWarFilename
- whether to keep the original file name, seeJBossPropertySet.DEPLOYER_KEEP_ORIGINAL_WAR_FILENAME
for details.
-
setListeningParameters
void setListeningParameters(InetSocketAddress listenSocket, String remoteDeployAddress)
- Parameters:
listenSocket
- socket to listen on.remoteDeployAddress
- remote hostname to use in the url, if null it will be obtained from the listenSocket.
-
getURL
URL getURL()
- Returns:
- url this server serves.
-
start
void start()
starts the server.
-
getCallCount
int getCallCount()
- Returns:
- the number of successful calls received.
-
getException
Throwable getException()
- Returns:
- exception, if any occured.
-
stop
void stop()
stops the server.
-
-