mirror of
https://github.com/devsnaith/lumiere-server.git
synced 2024-11-23 17:13:14 +03:00
soon...
This commit is contained in:
parent
caa8c59b26
commit
c3f63ff55b
29
src/org/eu/lumiere/io/WebFolder.java
Normal file
29
src/org/eu/lumiere/io/WebFolder.java
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
package org.eu.lumiere.io;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.net.Socket;
|
||||||
|
|
||||||
|
import org.eu.lumiere.net.RequestHandler;
|
||||||
|
import org.eu.lumiere.net.http.HTTPController;
|
||||||
|
import org.eu.lumiere.net.http.HTTPRequest;
|
||||||
|
import org.eu.lumiere.net.http.HTTPResponse;
|
||||||
|
|
||||||
|
public class WebFolder implements RequestHandler {
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
private HTTPController controller;
|
||||||
|
|
||||||
|
public WebFolder(File folder) {
|
||||||
|
if(folder == null)
|
||||||
|
throw new NullPointerException("WebFolder folder path cannot == null");
|
||||||
|
else if(!folder.isDirectory())
|
||||||
|
throw new IllegalAccessError("WebFolder need a directory");
|
||||||
|
controller = new HTTPController();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onRequestReceived(Socket socket, HTTPRequest request, HTTPResponse response) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user