Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TinyHost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Haker
TinyHost
Commits
3fb24b3a
Commit
3fb24b3a
authored
9 months ago
by
Philipp Haker
Browse files
Options
Downloads
Patches
Plain Diff
MANIFEST added, otherwise no executable jar
parent
6b45654a
Branches
master
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
src/META-INF/MANIFEST.MF
+3
-0
3 additions, 0 deletions
src/META-INF/MANIFEST.MF
src/Main.java
+3
-2
3 additions, 2 deletions
src/Main.java
with
7 additions
and
2 deletions
README.md
+
1
−
0
View file @
3fb24b3a
...
@@ -29,6 +29,7 @@ this copy will then be able to serve everything that was in the `pathToContent`
...
@@ -29,6 +29,7 @@ this copy will then be able to serve everything that was in the `pathToContent`
## TODO
## TODO
-
[ ] Optional purely command line interface
-
[ ] Optional purely command line interface
-
[ ] Built-In help
-
[ ] Selectively add/remove hosted files
-
[ ] Selectively add/remove hosted files
-
[ ] Dynamically generated page for
`/`
, if no
`index.html`
is present.
-
[ ] Dynamically generated page for
`/`
, if no
`index.html`
is present.
-
[ ] Unified error pages
-
[ ] Unified error pages
...
...
This diff is collapsed.
Click to expand it.
src/META-INF/MANIFEST.MF
0 → 100644
+
3
−
0
View file @
3fb24b3a
Manifest-Version: 1.0
Main-Class: Main
This diff is collapsed.
Click to expand it.
src/Main.java
+
3
−
2
View file @
3fb24b3a
...
@@ -21,6 +21,7 @@ public class Main {
...
@@ -21,6 +21,7 @@ public class Main {
private
static
final
String
NAME
=
"TinyHost"
;
private
static
final
String
NAME
=
"TinyHost"
;
private
static
final
String
VERSION
=
"0.5"
;
private
static
final
String
VERSION
=
"0.5"
;
private
static
final
String
HOME
=
"https://gitlab.informatik.uni-bremen.de/phaker/tinyhost"
;
private
static
final
Map
<
String
,
String
>
MIME_MAP
=
new
HashMap
<>();
private
static
final
Map
<
String
,
String
>
MIME_MAP
=
new
HashMap
<>();
private
static
final
String
DEFAULT_MIME_TYPE
=
"text/plain"
;
private
static
final
String
DEFAULT_MIME_TYPE
=
"text/plain"
;
...
@@ -212,12 +213,12 @@ public class Main {
...
@@ -212,12 +213,12 @@ public class Main {
</style>
</style>
</head>
</head>
<body>
<body>
Thank you for using <sub>%s</sub><br/>
Thank you for using
<a target="_blank" href="%s">
<sub>%s</sub><
/a><
br/>
<span>The server ran into a problem serving requested resource <code>%s</code> which should have been at <code>%s</code>.</span>
<span>The server ran into a problem serving requested resource <code>%s</code> which should have been at <code>%s</code>.</span>
<ol>%s</ol>
<ol>%s</ol>
</body>
</body>
</html>
</html>
"""
,
NAME
,
NAME
,
t
.
getRequestURI
(),
uriString
,
builder
);
"""
,
NAME
,
HOME
,
NAME
,
t
.
getRequestURI
(),
uriString
,
builder
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment