Package org.actioncontroller.httpserver
Class ContentHandler
- java.lang.Object
-
- org.actioncontroller.httpserver.ContentHandler
-
- All Implemented Interfaces:
HttpHandler
public class ContentHandler extends Object implements HttpHandler
-
-
Field Summary
Fields Modifier and Type Field Description ContentSourcecontentSource
-
Constructor Summary
Constructors Constructor Description ContentHandler(String resourceBase)ContentHandler(ContentSource contentSource)
-
-
-
Field Detail
-
contentSource
public ContentSource contentSource
-
-
Constructor Detail
-
ContentHandler
public ContentHandler(String resourceBase)
-
ContentHandler
public ContentHandler(ContentSource contentSource)
-
-
Method Detail
-
handle
public void handle(HttpExchange exchange) throws IOException
- Specified by:
handlein interfaceHttpHandler- Throws:
IOException
-
-