Class AttributeHandler
- java.lang.Object
-
- de.uhilger.httpserver.base.handler.AttributeHandler
-
- All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler
public abstract class AttributeHandler extends Object implements com.sun.net.httpserver.HttpHandler
Ein HttpHandler, der eigene Attribute besitzen kann- Version:
- 1, 30.6.2021
- Author:
- Ulrich Hilger
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>attributes
-
Constructor Summary
Constructors Constructor Description AttributeHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetAttribute(String key)abstract voidhandle(com.sun.net.httpserver.HttpExchange exchange)voidsetAttribute(String key, String value)
-
-
-
Method Detail
-
handle
public abstract void handle(com.sun.net.httpserver.HttpExchange exchange) throws IOException- Specified by:
handlein interfacecom.sun.net.httpserver.HttpHandler- Throws:
IOException
-
-