Merge branch 'master' of ssh://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project
This commit is contained in:
commit
cbb446f1d4
37
VERSION.txt
37
VERSION.txt
|
@ -1,3 +1,40 @@
|
|||
jetty-9.0.0.RC1 - 21 February 2013
|
||||
+ 227244 Remove import of backport-util-concurrent Arrays class
|
||||
+ 362854 Continuation implementations may deadlock.
|
||||
+ 381521 allow compress methods to be configured
|
||||
+ 388103 Add API for tracking down upload progress.
|
||||
+ 398649 ServletContextListener.contextDestroyed() is not called on
|
||||
ContextHandler unregistration
|
||||
+ 399463 add start.ini documentation for OPTIONS. Remove reference to
|
||||
start_config
|
||||
+ 399520 Websocket Server Connection needs session idle timeouts
|
||||
+ 399535 Websocket-client connect should have configurable connect timeout
|
||||
+ 400014 Http async client DNS performance.
|
||||
+ 400040 NullPointerException in HttpGenerator.prepareBuffers
|
||||
+ 400184 SslContextFactory change. Disable hostname verification if trustAll
|
||||
is set
|
||||
+ 400255 Using WebSocket.maxMessageSize results in IllegalArgumentException
|
||||
+ 400434 Add support for an OutputStream ContentProvider.
|
||||
+ 400457 Thread context classloader hierarchy not searched when finding
|
||||
webapp's java:comp/env
|
||||
+ 400512 ClientUpgradeRequet.addExtension() should fail if extension is not
|
||||
installed
|
||||
+ 400555 HttpProxyEngine: Add http version header in response
|
||||
+ 400631 Calling flush() on HttpServletResponse.getOutputStream() after last
|
||||
byte of body causes EofException.
|
||||
+ 400734 NPE for redirects with relative location.
|
||||
+ 400738 ResourceHandler doesn't support range requests
|
||||
+ 400848 Redirect fails with non-encoded location URIs.
|
||||
+ 400849 Conversation hangs if non-first request fails when queued.
|
||||
+ 400859 limit max size of writes from cached content
|
||||
+ 400864 Added LowResourcesMonitor
|
||||
+ 401177 Make org.eclipse.jetty.websocket.api.WebSocketAdapter threadsafe
|
||||
+ 401183 Handle push streams in new method StreamFrameListener.onPush()
|
||||
instead of SessionFrameListener.syn()
|
||||
+ 401414 Hostname verification fails.
|
||||
+ 401427 WebSocket messages sent from onConnect fail to be read by jetty
|
||||
websocket-client
|
||||
|
||||
jetty-9.0.0.RC0 - 01 February 2013
|
||||
+ 362226 HttpConnection "wait" call causes thread resource exhaustion
|
||||
+ 370384 jetty-aggregate not used in jetty-distribution
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
//
|
||||
// ========================================================================
|
||||
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
|
||||
// ------------------------------------------------------------------------
|
||||
// All rights reserved. This program and the accompanying materials
|
||||
// are made available under the terms of the Eclipse Public License v1.0
|
||||
// and Apache License v2.0 which accompanies this distribution.
|
||||
//
|
||||
// The Eclipse Public License is available at
|
||||
// http://www.eclipse.org/legal/epl-v10.html
|
||||
//
|
||||
// The Apache License v2.0 is available at
|
||||
// http://www.opensource.org/licenses/apache2.0.php
|
||||
//
|
||||
// You may elect to redistribute this code under either of these licenses.
|
||||
// ========================================================================
|
||||
//
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.ServletException;
|
||||
import java.io.IOException;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.Request;
|
||||
import org.eclipse.jetty.server.handler.AbstractHandler;
|
||||
|
||||
public class HelloWorld extends AbstractHandler
|
||||
{
|
||||
@Override
|
||||
public void handle(String target,
|
||||
Request baseRequest,
|
||||
HttpServletRequest request,
|
||||
HttpServletResponse response)
|
||||
throws IOException, ServletException
|
||||
{
|
||||
response.setContentType("text/html;charset=utf-8");
|
||||
response.setStatus(HttpServletResponse.SC_OK);
|
||||
baseRequest.setHandled(true);
|
||||
response.getWriter().println("<h1>Hello World</h1>");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception
|
||||
{
|
||||
Server server = new Server(8080);
|
||||
server.setHandler(new HelloWorld());
|
||||
|
||||
server.start();
|
||||
server.join();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue