Moved from Gradle to bld
This commit is contained in:
parent
84cfe6098d
commit
68975a497b
58 changed files with 632 additions and 2393 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Reasons.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* StatusCode.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -32,6 +32,7 @@
|
|||
|
||||
package net.thauvin.erik.httpstatus;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
|
@ -40,6 +41,7 @@ import java.io.Serializable;
|
|||
* @author <a href="mailto:erik@thauvin.net">Erik C. Thauvin</a>
|
||||
*/
|
||||
public class StatusCode implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private int code;
|
||||
|
||||
|
@ -49,7 +51,7 @@ public class StatusCode implements Serializable {
|
|||
public StatusCode() {
|
||||
// Default constructor.
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new StatusCode object.
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Utils.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -66,24 +66,12 @@ public final class Utils {
|
|||
for (int i = 0; i < value.length(); i++) {
|
||||
final char c = value.charAt(i);
|
||||
switch (c) {
|
||||
case '<':
|
||||
escaped.append("<");
|
||||
break;
|
||||
case '>':
|
||||
escaped.append(">");
|
||||
break;
|
||||
case '&':
|
||||
escaped.append("&");
|
||||
break;
|
||||
case '\'':
|
||||
escaped.append("'");
|
||||
break;
|
||||
case '"':
|
||||
escaped.append(""");
|
||||
break;
|
||||
default:
|
||||
escaped.append(c);
|
||||
break;
|
||||
case '<' -> escaped.append("<");
|
||||
case '>' -> escaped.append(">");
|
||||
case '&' -> escaped.append("&");
|
||||
case '\'' -> escaped.append("'");
|
||||
case '"' -> escaped.append(""");
|
||||
default -> escaped.append(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* CauseTag.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* CodeTag.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* CauseTag.java
|
||||
* MessageTag.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* ReasonTag.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -65,7 +65,7 @@ public class ReasonTag extends XmlSupport {
|
|||
Utils.outWrite(out, Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()), defaultValue,
|
||||
escapeXml);
|
||||
}
|
||||
} catch (IOException ignore) {
|
||||
} catch (IOException ignored) {
|
||||
// Ignore.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* XmlSupport.java
|
||||
*
|
||||
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
|
||||
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue