Basisklassen zum Modul jdk.httpserver
ulrich
2021-06-03 90f2d31a8e222cfc91214f511e4840f7194e1125
Kommentare ergaenzt
3 files modified
49 ■■■■ changed files
src/de/uhilger/httpserver/base/handler/FileHandler.java 4 ●●●● patch | view | raw | blame | history
src/de/uhilger/httpserver/base/handler/HttpHelper.java 21 ●●●● patch | view | raw | blame | history
src/de/uhilger/httpserver/base/handler/HttpResponder.java 24 ●●●● patch | view | raw | blame | history
src/de/uhilger/httpserver/base/handler/FileHandler.java
@@ -1,5 +1,5 @@
/*
  Proto - Ein Rumpf-Konstrukt fuer Webapps
  http-base - Extensions to jdk.httpserver
  Copyright (C) 2021  Ulrich Hilger
  This program is free software: you can redistribute it and/or modify
@@ -39,7 +39,7 @@
 * (vgl. https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests)
 *
 * @author Ulrich Hilger
 * @version 0.1, 25. März 2021
 * @version 1, 03.06.2021, (seit 25. März 2021)
 */
public class FileHandler implements HttpHandler {
src/de/uhilger/httpserver/base/handler/HttpHelper.java
@@ -1,7 +1,19 @@
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
  http-base - Extensions to jdk.httpserver
  Copyright (C) 2021  Ulrich Hilger
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.
  You should have received a copy of the GNU Affero General Public License
  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
package de.uhilger.httpserver.base.handler;
@@ -12,7 +24,8 @@
import java.io.InputStreamReader;
/**
 *
 * Helfer fuer HTTP-Methoden
 *
 * @author Ulrich Hilger
 * @version 1, 01.06.2021
 */
src/de/uhilger/httpserver/base/handler/HttpResponder.java
@@ -1,7 +1,19 @@
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
  http-base - Extensions to jdk.httpserver
  Copyright (C) 2021  Ulrich Hilger
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.
  You should have received a copy of the GNU Affero General Public License
  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
package de.uhilger.httpserver.base.handler;
@@ -18,8 +30,10 @@
import java.util.Date;
/**
 *
 * @author ulli
 * Helfer zur Beantwortung von HTTP-Anfragen
 *
 * @author Ulrich Hilger
 * @version 1, 03.06.2021
 */
public class HttpResponder {