Re: [Simpleweb-Support] best way to build
Brought to you by:
niallg
|
From: Stefano F. <ste...@gm...> - 2014-06-08 06:12:58
|
Index: simple/src/test/java/org/simpleframework/transport/Console.java
===================================================================
--- simple/src/test/java/org/simpleframework/transport/Console.java (revision 2194)
+++ simple/src/test/java/org/simpleframework/transport/Console.java (working copy)
@@ -3,11 +3,13 @@
import java.io.IOException;
import java.net.Socket;
import java.net.SocketAddress;
+import java.net.SocketOption;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.SocketChannel;
import java.nio.channels.WritableByteChannel;
+import java.util.Set;
class Console extends SocketChannel {
@@ -78,4 +80,41 @@
@Override
protected void implConfigureBlocking(boolean block) throws IOException {
}
+
+ @Override
+ public SocketChannel bind(SocketAddress local) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public <T> SocketChannel setOption(SocketOption<T> name, T value) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketChannel shutdownInput() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketChannel shutdownOutput() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketAddress getRemoteAddress() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public SocketAddress getLocalAddress() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public <T> T getOption(SocketOption<T> name) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public Set<SocketOption<?>> supportedOptions() {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
}
Index: simple/src/test/java/org/simpleframework/transport/NetworkSimulator.java
===================================================================
--- simple/src/test/java/org/simpleframework/transport/NetworkSimulator.java (revision 2194)
+++ simple/src/test/java/org/simpleframework/transport/NetworkSimulator.java (working copy)
@@ -7,8 +7,10 @@
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketAddress;
+import java.net.SocketOption;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
+import java.util.Set;
public class NetworkSimulator extends SocketChannel {
private SocketChannel channel;
@@ -94,4 +96,41 @@
protected void implConfigureBlocking(boolean arg0) throws IOException {
return;
}
+
+ @Override
+ public SocketChannel bind(SocketAddress local) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public <T> SocketChannel setOption(SocketOption<T> name, T value) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketChannel shutdownInput() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketChannel shutdownOutput() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketAddress getRemoteAddress() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public SocketAddress getLocalAddress() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public <T> T getOption(SocketOption<T> name) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public Set<SocketOption<?>> supportedOptions() {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
}
Index: simple/src/test/java/org/simpleframework/transport/connect/FilterSocketChannel.java
===================================================================
--- simple/src/test/java/org/simpleframework/transport/connect/FilterSocketChannel.java (revision 2194)
+++ simple/src/test/java/org/simpleframework/transport/connect/FilterSocketChannel.java (working copy)
@@ -4,8 +4,10 @@
import java.io.IOException;
import java.net.Socket;
import java.net.SocketAddress;
+import java.net.SocketOption;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
+import java.util.Set;
// Can this be selected with?????
public class FilterSocketChannel extends SocketChannel {
@@ -109,4 +111,41 @@
protected void implConfigureBlocking(boolean block) throws IOException {
channel.configureBlocking(block);
}
+
+ @Override
+ public SocketChannel bind(SocketAddress local) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public <T> SocketChannel setOption(SocketOption<T> name, T value) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketChannel shutdownInput() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketChannel shutdownOutput() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ @Override
+ public SocketAddress getRemoteAddress() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public SocketAddress getLocalAddress() throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public <T> T getOption(SocketOption<T> name) throws IOException {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
+
+ public Set<SocketOption<?>> supportedOptions() {
+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ }
}
Index: simple
===================================================================
--- simple (revision 2194)
+++ simple (working copy)
Property changes on: simple
___________________________________________________________________
Modified: svn:ignore
## -6,3 +6,4 ##
maven
report
site
+target |