Terms of Service | Privacy Policy | Cookie Policy

Commit c29ecc3a authored by Uwe Plonus's avatar Uwe Plonus

Merge branch 'master' into 'master'

Update Dependencies

See merge request !1
parents 33d5eec4 b7272917
Pipeline #1506 passed with stages
in 19 minutes and 5 seconds
......@@ -33,7 +33,7 @@ pages:
refs:
- master
script:
- mvn $MAVEN_CLI_OPTS $MVN_PROFILE site post-site
- mvn $MAVEN_CLI_OPTS $MVN_PROFILE compile site post-site
- mv target/staging public
artifacts:
paths:
......
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ html-crawler is a library to help crawling websites.
~ Copyright (C) 2020 Uwe Plonus
~
~ 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/>.
-->
<document
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://maven.apache.org/changes/1.0.0'
xsi:schemaLocation='http://maven.apache.org/changes/1.0.0 https://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd'>
<body>
<release version="0.1.0" description="Initial release">
<action dev="uweplonus" type="add" date="2020-02-29">
Initial setup of the project.
</action>
</release>
</body>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ html-crawler is a library to help crawling websites.
~ Copyright (C) 2020 Uwe Plonus
~
~ 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/>.
-->
<suppressions xmlns="https://www.owasp.org/index.php/OWASP_Dependency_Check_Suppression">
<!--<suppress base="true|false">
<notes><![CDATA[Reason]]></notes>
one of
<filePath regex="true|false" caseSensitive="true|false">or sha1 or gav</filePath>
<sha1>or filePath or gav</sha1>
<gav regex="true|false" caseSensitive="true|false">org\.example:example.*</gav>
any combination
<cpe regex="true|false" caseSensitive="true|false">cpe:/a:example:example:x.y.z</cpe>
<cve>CVE-1999-1234</cve>
<cwe>123</cwe>
<cvssBelow></cvssBelow>
</suppress>-->
</suppressions>
......@@ -20,34 +20,36 @@ package org.sw4j.tool.html.crawler;
public class ExternalReferenceEvent {
private final Type type;
private final String elementName;
private final LinkType linkType;
private final String link;
public ExternalReferenceEvent(final Type type, final String link) {
this.type = type;
private final RelationType relation;
public ExternalReferenceEvent(final String elementName, final LinkType linkType, final String link,
final RelationType relation) {
this.elementName = elementName;
this.linkType = linkType;
this.link = link;
this.relation = relation;
}
public String getElementName() {
return elementName;
}
public Type getType() {
return type;
public LinkType getLinkType() {
return linkType;
}
public String getLink() {
return link;
}
public enum Type {
REDIRECT,
LINK,
IMAGE,
SCRIPT,
STYLESHEET,
OTHER,
;
public RelationType getRelation() {
return relation;
}
}
......@@ -20,6 +20,6 @@ package org.sw4j.tool.html.crawler;
public interface ExternalReferenceListener {
void externalLink(ExternalReferenceEvent event);
void link(ExternalReferenceEvent event);
}
/*
* html-crawler is a library to help crawling websites.
* Copyright (C) 2020 Uwe Plonus
*
* 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 org.sw4j.tool.html.crawler;
public enum LinkType {
HYPERLINK,
EXTERNAL_RESOURCE,
FORM_SUBMISSION,
;
}
/*
* html-crawler is a library to help crawling websites.
* Copyright (C) 2020 Uwe Plonus
*
* 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 org.sw4j.tool.html.crawler;
public enum RelationType {
ALTERNATE,
AUTHOR,
CANONICAL,
DNS_PREFETCH,
HELP,
ICON,
LICENSE,
MODULEPRELOAD,
NEXT,
PINGBACK,
PRECONNECT,
PREFETCH,
PRELOAD,
PRERENDER,
PREV,
SEARCH,
STYLESHEET,
ALTERNATE_STYLESHEET,
;
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ html-crawler is a library to help crawling websites.
~ Copyright (C) 2020 Uwe Plonus
~
~ 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/>.
-->
<project xmlns='http://maven.apache.org/DECORATION/1.6.0'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://maven.apache.org/DECORATION/1.6.0 http://maven.apache.org/xsd/decoration-1.6.0.xsd'
name="Random Barcode Generator">
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>${fluido-skin.version}</version>
</skin>
<body>
<menu name="User Documentation">
<item href="index.html" name="Introduction"/>
</menu>
<menu ref="reports"/>
</body>
</project>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body></body>
</html>
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="style.css">
<link rel="alternate stylesheet" href="altstyle.css" title="Alt">
<head>
<title></title>
</head>
<body></body>
</html>
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="style.css">
<head>
<title></title>
</head>
<body></body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment