Skip to content

Commit

Permalink
Merge pull request #86 from cip4/sec2
Browse files Browse the repository at this point in the history
Sec2
  • Loading branch information
rainer-prosi authored Jun 14, 2024
2 parents 96ea7f9 + c0fb9d2 commit 7ec50e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion src/main/java/org/cip4/jdfutility/server/JettyServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ public void setSSLPort(final int port)
/**
* @param port the ssl port
* @return may be used for additional setup
* @deprecated use the single argument version
*/
@Deprecated
public void setSSLPort(final int port, final String dummy)
Expand Down Expand Up @@ -489,13 +490,27 @@ public void handle(final String pathInContext, final Request arg1, final HttpSer
}
}

/**
* @author rainer prosi
*/
public class MyResourceHandler extends org.cip4.jdfutility.server.MyResourceHandler
{

public MyResourceHandler(final String strip)
{
super(strip, getHome());
}

}

/**
* @return
*/
protected ResourceHandler createResourceHandler()
{
final ResourceHandler resourceHandler = new MyResourceHandler(context, getHome());
final ResourceHandler resourceHandler = new org.cip4.jdfutility.server.MyResourceHandler(context, getHome());
resourceHandler.setResourceBase(".");
resourceHandler.setDirAllowed(false);
return resourceHandler;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import org.cip4.jdfutility.server.JettyServer.JettySSLData;
import org.junit.jupiter.api.Test;

public class JettyServerTest extends JDFUtilityTestBase
class JettyServerTest extends JDFUtilityTestBase
{

static volatile int PORT = 33666;
Expand Down

0 comments on commit 7ec50e1

Please sign in to comment.