Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Server_Extension
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Server_Extension
Commits
5c4d2ee1
Commit
5c4d2ee1
authored
9 years ago
by
HongKee Moon
Browse files
Options
Downloads
Patches
Plain Diff
Remove logging and use local variable of servletHandler
parent
1c33a3a5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/server/DataSetContextHandler.java
+3
-4
3 additions, 4 deletions
src/main/java/bdv/server/DataSetContextHandler.java
with
3 additions
and
4 deletions
src/main/java/bdv/server/DataSetContextHandler.java
+
3
−
4
View file @
5c4d2ee1
...
...
@@ -24,20 +24,19 @@ public class DataSetContextHandler extends ServletContextHandler
private
static
final
org
.
eclipse
.
jetty
.
util
.
log
.
Logger
LOG
=
Log
.
getLogger
(
DataSetContextHandler
.
class
);
private
final
ContextHandlerCollection
datasetHandlers
;
private
final
ServletHandler
servletHandler
;
public
DataSetContextHandler
(
final
ContextHandlerCollection
datasetHandlers
)
{
this
.
datasetHandlers
=
datasetHandlers
;
setContextPath
(
"/"
+
Constants
.
DATASET_CONTEXT_NAME
);
servletHandler
=
new
ServletHandler
();
final
ServletHandler
servletHandler
=
new
ServletHandler
();
Servlet
servlet
=
new
DefaultServlet
();
ServletHolder
servletHolder
=
new
ServletHolder
(
servlet
);
servletHandler
.
addServletWithMapping
(
servletHolder
,
"/*.xml"
);
servletHandler
.
addServletWithMapping
(
servletHolder
,
"/*.bdv"
);
setHandler
(
_
servletHandler
);
setHandler
(
servletHandler
);
}
@Override
...
...
@@ -65,7 +64,7 @@ public class DataSetContextHandler extends ServletContextHandler
for
(
final
Handler
handler
:
datasetHandlers
.
getChildHandlersByClass
(
CellHandler
.
class
)
)
{
final
CellHandler
contextHandler
=
(
CellHandler
)
handler
;
System
.
out
.
println
(
contextHandler
);
if
(
contextHandler
.
getContextPath
().
equals
(
getContextPath
()
+
datasetName
)
)
{
found
=
contextHandler
;
...
...
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