Repository: incubator-juneau Updated Branches: refs/heads/master 4b4da6d83 -> 075e24c58
Add jetty.xml files. Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/075e24c5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/075e24c5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/075e24c5 Branch: refs/heads/master Commit: 075e24c582999c8f0606023c6322000901121ced Parents: 4b4da6d Author: JamesBognar <[email protected]> Authored: Fri Aug 4 08:27:38 2017 -0400 Committer: JamesBognar <[email protected]> Committed: Fri Aug 4 08:27:38 2017 -0400 ---------------------------------------------------------------------- juneau-examples-rest/jetty.xml | 53 +++++++++++++++++++++++++++++ juneau-microservice-template/jetty.xml | 53 +++++++++++++++++++++++++++++ juneau-rest-test/jetty.xml | 53 +++++++++++++++++++++++++++++ 3 files changed, 159 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/075e24c5/juneau-examples-rest/jetty.xml ---------------------------------------------------------------------- diff --git a/juneau-examples-rest/jetty.xml b/juneau-examples-rest/jetty.xml new file mode 100644 index 0000000..dd66082 --- /dev/null +++ b/juneau-examples-rest/jetty.xml @@ -0,0 +1,53 @@ +<?xml version="1.0"?> +<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> +<!-- + *************************************************************************************************************************** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * + * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * + * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * + * with the License. You may obtain a copy of the License at * + * * + * http://www.apache.org/licenses/LICENSE-2.0 * + * * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * + * specific language governing permissions and limitations under the License. * + *************************************************************************************************************************** +--> + +<Configure id="ExampleServer" class="org.eclipse.jetty.server.Server"> + + <Set name="connectors"> + <Array type="org.eclipse.jetty.server.Connector"> + <Item> + <New class="org.eclipse.jetty.server.ServerConnector"> + <Arg><Ref refid="ExampleServer"/></Arg> + <Set name="port">10000</Set> + </New> + </Item> + </Array> + </Set> + + <New id="context" class="org.eclipse.jetty.servlet.ServletContextHandler"> + <Set name="contextPath">/</Set> + <Call name="addServlet"> + <Arg>org.apache.juneau.examples.rest.RootResources</Arg> + <Arg>/*</Arg> + </Call> + </New> + + <Set name="handler"> + <New class="org.eclipse.jetty.server.handler.HandlerCollection"> + <Set name="handlers"> + <Array type="org.eclipse.jetty.server.Handler"> + <Item> + <Ref refid="context" /> + </Item> + <Item> + <New class="org.eclipse.jetty.server.handler.DefaultHandler" /> + </Item> + </Array> + </Set> + </New> + </Set> +</Configure> http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/075e24c5/juneau-microservice-template/jetty.xml ---------------------------------------------------------------------- diff --git a/juneau-microservice-template/jetty.xml b/juneau-microservice-template/jetty.xml new file mode 100644 index 0000000..dea57c8 --- /dev/null +++ b/juneau-microservice-template/jetty.xml @@ -0,0 +1,53 @@ +<?xml version="1.0"?> +<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> +<!-- + *************************************************************************************************************************** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * + * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * + * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * + * with the License. You may obtain a copy of the License at * + * * + * http://www.apache.org/licenses/LICENSE-2.0 * + * * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * + * specific language governing permissions and limitations under the License. * + *************************************************************************************************************************** +--> + +<Configure id="ExampleServer" class="org.eclipse.jetty.server.Server"> + + <Set name="connectors"> + <Array type="org.eclipse.jetty.server.Connector"> + <Item> + <New class="org.eclipse.jetty.server.ServerConnector"> + <Arg><Ref refid="ExampleServer"/></Arg> + <Set name="port">10000</Set> + </New> + </Item> + </Array> + </Set> + + <New id="context" class="org.eclipse.jetty.servlet.ServletContextHandler"> + <Set name="contextPath">/</Set> + <Call name="addServlet"> + <Arg>org.apache.juneau.microservice.sample.RootResources</Arg> + <Arg>/*</Arg> + </Call> + </New> + + <Set name="handler"> + <New class="org.eclipse.jetty.server.handler.HandlerCollection"> + <Set name="handlers"> + <Array type="org.eclipse.jetty.server.Handler"> + <Item> + <Ref refid="context" /> + </Item> + <Item> + <New class="org.eclipse.jetty.server.handler.DefaultHandler" /> + </Item> + </Array> + </Set> + </New> + </Set> +</Configure> http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/075e24c5/juneau-rest-test/jetty.xml ---------------------------------------------------------------------- diff --git a/juneau-rest-test/jetty.xml b/juneau-rest-test/jetty.xml new file mode 100644 index 0000000..11c9803 --- /dev/null +++ b/juneau-rest-test/jetty.xml @@ -0,0 +1,53 @@ +<?xml version="1.0"?> +<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> +<!-- + *************************************************************************************************************************** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * + * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * + * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * + * with the License. You may obtain a copy of the License at * + * * + * http://www.apache.org/licenses/LICENSE-2.0 * + * * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * + * specific language governing permissions and limitations under the License. * + *************************************************************************************************************************** +--> + +<Configure id="ExampleServer" class="org.eclipse.jetty.server.Server"> + + <Set name="connectors"> + <Array type="org.eclipse.jetty.server.Connector"> + <Item> + <New class="org.eclipse.jetty.server.ServerConnector"> + <Arg><Ref refid="ExampleServer"/></Arg> + <Set name="port">10001</Set> + </New> + </Item> + </Array> + </Set> + + <New id="context" class="org.eclipse.jetty.servlet.ServletContextHandler"> + <Set name="contextPath">/</Set> + <Call name="addServlet"> + <Arg>org.apache.juneau.rest.test.Root</Arg> + <Arg>/*</Arg> + </Call> + </New> + + <Set name="handler"> + <New class="org.eclipse.jetty.server.handler.HandlerCollection"> + <Set name="handlers"> + <Array type="org.eclipse.jetty.server.Handler"> + <Item> + <Ref refid="context" /> + </Item> + <Item> + <New class="org.eclipse.jetty.server.handler.DefaultHandler" /> + </Item> + </Array> + </Set> + </New> + </Set> +</Configure>
