Update to newer 3.1 api jar published by oracle (3.1-b08 - note DOES NOT contain xsds and dtds).

This commit is contained in:
Jan Bartel 2013-04-15 17:44:35 +10:00
parent 07b844bf85
commit db21b42b4f
18 changed files with 96 additions and 42 deletions

View File

@ -23,7 +23,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -27,7 +27,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -96,5 +96,10 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1-b08</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -25,7 +25,9 @@
<module>jetty-osgi-httpservice</module> <module>jetty-osgi-httpservice</module>
<module>test-jetty-osgi-webapp</module> <module>test-jetty-osgi-webapp</module>
<module>test-jetty-osgi-context</module> <module>test-jetty-osgi-context</module>
<!--
<module>test-jetty-osgi</module> <module>test-jetty-osgi</module>
-->
</modules> </modules>
<build> <build>
<resources> <resources>

View File

@ -359,27 +359,33 @@ public class DeferredAuthentication implements Authentication.Deferred
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
private static ServletOutputStream __nullOut = new ServletOutputStream() private static ServletOutputStream __nullOut = new ServletOutputStream()
{ {
@Override
public void write(int b) throws IOException public void write(int b) throws IOException
{ {
} }
@Override
public void print(String s) throws IOException public void print(String s) throws IOException
{ {
} }
@Override
public void println(String s) throws IOException public void println(String s) throws IOException
{ {
} }
public boolean canWrite()
{ @Override
return false;
}
public void setWriteListener(WriteListener writeListener) public void setWriteListener(WriteListener writeListener)
{ {
} }
@Override
public boolean isReady()
{
return false;
}
}; };

View File

@ -347,20 +347,14 @@ public class HttpOutput extends ServletOutputStream
BufferUtil.clear(_aggregate); BufferUtil.clear(_aggregate);
} }
@Override
public boolean canWrite()
{
// TODO implement behaviour
// return true if data can be written without blocking
return false;
}
@Override @Override
public void setWriteListener(WriteListener writeListener) public void setWriteListener(WriteListener writeListener)
{ {
_writeListener = writeListener; _writeListener = writeListener;
// TODO implement behaviour // TODO 3.1 implement behaviour
/* /*
Registering a WriteListener will start non-blocking IO. It is illegal to switch to Registering a WriteListener will start non-blocking IO. It is illegal to switch to
the traditional blocking IO at that point. the traditional blocking IO at that point.
@ -370,7 +364,15 @@ public class HttpOutput extends ServletOutputStream
called AND has returned false AND a writeListener has previously been called AND has returned false AND a writeListener has previously been
set. set.
*/ */
}
/**
* @see javax.servlet.ServletOutputStream#isReady()
*/
@Override
public boolean isReady()
{
// TODO 3.1 Auto-generated method stub
return false;
} }
} }

View File

@ -56,8 +56,8 @@ import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpUpgradeHandler;
import javax.servlet.http.Part; import javax.servlet.http.Part;
import javax.servlet.http.ProtocolHandler;
import org.eclipse.jetty.http.HttpCookie; import org.eclipse.jetty.http.HttpCookie;
import org.eclipse.jetty.http.HttpFields; import org.eclipse.jetty.http.HttpFields;
@ -2203,10 +2203,14 @@ public class Request implements HttpServletRequest
} }
/* ------------------------------------------------------------ */
/**
* @see javax.servlet.http.HttpServletRequest#upgrade(java.lang.Class)
*/
@Override @Override
public void upgrade(ProtocolHandler arg0) throws IOException public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException
{ {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null;
} }
} }

View File

@ -31,8 +31,9 @@ import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpUpgradeHandler;
import javax.servlet.http.Part; import javax.servlet.http.Part;
import javax.servlet.http.ProtocolHandler;
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** /**
@ -212,12 +213,25 @@ public class ServletRequestHttpWrapper extends ServletRequestWrapper implements
} }
/**
* @see javax.servlet.http.HttpServletRequest#changeSessionId()
*/
@Override @Override
public void upgrade(ProtocolHandler handler) throws IOException public String changeSessionId()
{ {
// TODO Auto-generated method stub // TODO 3.1 Auto-generated method stub
return null;
}
/**
* @see javax.servlet.http.HttpServletRequest#upgrade(java.lang.Class)
*/
@Override
public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException
{
// TODO 3.1 Auto-generated method stub
return null;
} }

View File

@ -2525,6 +2525,16 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
{ {
LOG.warn(__unimplmented); LOG.warn(__unimplmented);
} }
/**
* @see javax.servlet.ServletContext#getVirtualServerName()
*/
@Override
public String getVirtualServerName()
{
// TODO 3.1 Auto-generated method stub
return null;
}
} }

View File

@ -352,19 +352,20 @@ public abstract class AbstractCompressedStream extends ServletOutputStream
_response.setHeader(name, value); _response.setHeader(name, value);
} }
@Override
public boolean canWrite()
{
// TODO Auto-generated method stub
return false;
}
@Override @Override
public void setWriteListener(WriteListener writeListener) public void setWriteListener(WriteListener writeListener)
{ {
// TODO Auto-generated method stub // TODO 3.1 Auto-generated method stub
} }
@Override
public boolean isReady()
{
// TODO 3.1 Auto-generated method stub
return false;
}
/** /**
* Create the stream fitting to the underlying compression type. * Create the stream fitting to the underlying compression type.

View File

@ -217,6 +217,16 @@ public class MultiPartInputStreamParser
} }
} }
/**
* @see javax.servlet.http.Part#getSubmittedFileName()
*/
@Override
public String getSubmittedFileName()
{
return getContentDispositionFilename();
}
public byte[] getBytes() public byte[] getBytes()
{ {
if (_bout!=null) if (_bout!=null)

View File

@ -23,7 +23,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
</dependency> </dependency>
<!-- <!--

View File

@ -465,7 +465,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
<!-- <!--
<groupId>org.eclipse.jetty.orbit</groupId> <groupId>org.eclipse.jetty.orbit</groupId>
<artifactId>javax.servlet</artifactId> <artifactId>javax.servlet</artifactId>

View File

@ -30,7 +30,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
</dependency> </dependency>
<!-- <!--

View File

@ -49,7 +49,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>

View File

@ -24,7 +24,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>

View File

@ -138,7 +138,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>

View File

@ -25,7 +25,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version> <version>3.1-b08</version>
</dependency> </dependency>
<!-- <!--