From 38c12cf70ef4714a7fc508f7fbaf44487ea971b7 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Mon, 31 Mar 2014 22:35:43 -0700 Subject: Locking down restlet library version. While trying to fix this issue, I also moved FMFacade into this package and fixed a couple bugs that snuck into the last commit. --- src/com/p4square/grow/GrowProcessComponent.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/com/p4square/grow/GrowProcessComponent.java') diff --git a/src/com/p4square/grow/GrowProcessComponent.java b/src/com/p4square/grow/GrowProcessComponent.java index eb92840..29da766 100644 --- a/src/com/p4square/grow/GrowProcessComponent.java +++ b/src/com/p4square/grow/GrowProcessComponent.java @@ -56,8 +56,8 @@ public class GrowProcessComponent extends Component { // Authenticated access to the backend BackendVerifier verifier = new BackendVerifier(backend.getUserRecordProvider()); - ChallengeAuthenticator auth = new ChallengeAuthenticator(getContext(), false, - ChallengeScheme.HTTP_BASIC, BACKEND_REALM, verifier); + ChallengeAuthenticator auth = new ChallengeAuthenticator(getContext().createChildContext(), + false, ChallengeScheme.HTTP_BASIC, BACKEND_REALM, verifier); auth.setNext(backend); getDefaultHost().attach("/backend", auth); } @@ -87,9 +87,6 @@ public class GrowProcessComponent extends Component { // Start the HTTP Server final GrowProcessComponent component = new GrowProcessComponent(); component.getServers().add(Protocol.HTTP, 8085); - component.getClients().add(Protocol.HTTP); - component.getClients().add(Protocol.HTTPS); - component.getClients().add(Protocol.FILE); //component.getClients().add(new Client(null, Arrays.asList(Protocol.HTTPS), "org.restlet.ext.httpclient.HttpClientHelper")); // Static content -- cgit v1.2.3