FileDocCategorySizeDatePackage
OpenSSLSocketImplWrapper.javaAPI DocAndroid 1.5 API4747Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.provider.jsse

OpenSSLSocketImplWrapper

public class OpenSSLSocketImplWrapper extends OpenSSLSocketImpl
This class wraps the SSL functionality over an existing conneted socket.

Fields Summary
private Socket
socket
Constructors Summary
protected OpenSSLSocketImplWrapper(Socket socket, String host, int port, boolean autoClose, SSLParameters sslParameters)

        super(socket, host, port, autoClose, sslParameters);
        if (!socket.isConnected()) {
            throw new SocketException("Socket is not connected.");
        }
        this.socket = socket;
    
Methods Summary
public voidbind(java.net.SocketAddress sockaddr)

        throw new IOException("Underlying socket is already connected.");
    
public voidconnect(java.net.SocketAddress sockaddr, int timeout)

        throw new IOException("Underlying socket is already connected.");
    
public voidconnect(java.net.SocketAddress sockaddr)

        throw new IOException("Underlying socket is already connected.");
    
public java.net.InetAddressgetInetAddress()

        return socket.getInetAddress();
    
public booleangetKeepAlive()

        return socket.getKeepAlive();
    
public java.net.InetAddressgetLocalAddress()

        return socket.getLocalAddress();
    
public intgetLocalPort()

        return socket.getLocalPort();
    
public java.net.SocketAddressgetLocalSocketAddress()

        return socket.getLocalSocketAddress();
    
public booleangetOOBInline()

        return socket.getOOBInline();
    
public intgetPort()

        return socket.getPort();
    
public intgetReceiveBufferSize()

        return socket.getReceiveBufferSize();
    
public java.net.SocketAddressgetRemoteSocketAddress()

        return socket.getRemoteSocketAddress();
    
public booleangetReuseAddress()

        return socket.getReuseAddress();
    
public intgetSendBufferSize()

        return socket.getSendBufferSize();
    
public intgetSoLinger()

        return socket.getSoLinger();
    
public intgetSoTimeout()

        return socket.getSoTimeout();
    
public booleangetTcpNoDelay()

        return socket.getTcpNoDelay();
    
public intgetTrafficClass()

        return socket.getTrafficClass();
    
public booleanisBound()

        return socket.isBound();
    
public booleanisClosed()

        return socket.isClosed();
    
public booleanisConnected()

        return socket.isConnected();
    
public booleanisInputShutdown()

        return socket.isInputShutdown();
    
public booleanisOutputShutdown()

        return socket.isOutputShutdown();
    
public voidsetKeepAlive(boolean on)

        socket.setKeepAlive(on);
    
public voidsetReceiveBufferSize(int size)

        socket.setReceiveBufferSize(size);
    
public voidsetReuseAddress(boolean on)

        socket.setReuseAddress(on);
    
public voidsetSendBufferSize(int size)

        socket.setSendBufferSize(size);
    
public voidsetSoLinger(boolean on, int linger)

        socket.setSoLinger(on, linger);
    
public voidsetSoTimeout(int to)

        socket.setSoTimeout(to);
        super.setSoTimeout(to);
    
public voidsetTcpNoDelay(boolean on)

        socket.setTcpNoDelay(on);
    
public voidsetTrafficClass(int tos)

        socket.setTrafficClass(tos);
    
public java.lang.StringtoString()

        return "SSL socket over " + socket.toString();