Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
Data Proxy
Commits
7b8b1e3d
Commit
7b8b1e3d
authored
3 years ago
by
Jesper Zedlitz
Browse files
Options
Downloads
Patches
Plain Diff
don't exit on pressed key
parent
e5d8b173
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#240
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/landsh/opendata/dataproxy/App.java
+6
-5
6 additions, 5 deletions
src/main/java/de/landsh/opendata/dataproxy/App.java
with
6 additions
and
5 deletions
src/main/java/de/landsh/opendata/dataproxy/App.java
+
6
−
5
View file @
7b8b1e3d
package
de.landsh.opendata.dataproxy
;
package
de.landsh.opendata.dataproxy
;
import
fi.iki.elonen.NanoHTTPD
;
import
fi.iki.elonen.NanoHTTPD
;
import
fi.iki.elonen.util.ServerRunner
;
import
java.io.IOException
;
public
class
App
extends
NanoHTTPD
{
public
class
App
extends
NanoHTTPD
{
public
static
int
port
=
8080
;
public
static
int
port
=
8080
;
...
@@ -14,7 +15,7 @@ public class App extends NanoHTTPD {
...
@@ -14,7 +15,7 @@ public class App extends NanoHTTPD {
System
.
out
.
println
(
"\nRunning! Point your browser to http://localhost:"
+
port
+
"/ \n"
);
System
.
out
.
println
(
"\nRunning! Point your browser to http://localhost:"
+
port
+
"/ \n"
);
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
try
{
try
{
...
@@ -25,7 +26,7 @@ public class App extends NanoHTTPD {
...
@@ -25,7 +26,7 @@ public class App extends NanoHTTPD {
}
}
}
}
ServerRunner
.
run
(
App
.
class
);
new
App
().
start
(
5000
,
false
);
}
}
@Override
@Override
...
...
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