org.norther.tammi.spray.connector
Interface SocketConnector

All Superinterfaces:
Connector, Executable, ExecutableConnector, LocalConnector, Runnable, Startable, TCPConnector
All Known Implementing Classes:
DefaultSocketConnector

public interface SocketConnector
extends LocalConnector

An interface to socket connectors.

Author:
Ilkka Priha

Method Summary
 void setAddress(String addr)
          Sets the address of the server of the connection.
 
Methods inherited from interface org.norther.tammi.spray.connector.LocalConnector
isClientAuthNeeded, isClientAuthWanted, setClientAuthNeeded, setClientAuthWanted, setMaxIdleConnections
 
Methods inherited from interface org.norther.tammi.spray.connector.TCPConnector
getReceiveBufferSize, getSendBufferSize, getServerBufferSize, getSoLinger, getSoTimeout, isTcpNoDelay, setReceiveBufferSize, setSendBufferSize, setServerBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay
 
Methods inherited from interface org.norther.tammi.spray.connector.ExecutableConnector
getConnectionCount, getRequestExecutorName, setRequestExecutorName
 
Methods inherited from interface org.norther.tammi.spray.connector.Connector
getAddress, getConnectionTimeout, getFilterName, getKeyAlias, getLoggerName, getMaxIdleConnections, getName, getPort, getProvider, getRedirectPort, getRequestTimeout, isKeepConnection, isLoggingDisabled, isSecure, keepConnection, setConnectionTimeout, setFilterName, setKeyAlias, setKeyPassword, setLoggerName, setLoggingDisabled, setPort, setProvider, setRedirectPort, setRequestTimeout, setSecure
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 
Methods inherited from interface org.norther.tammi.core.thread.Executable
getExecutorName, setExecutorName
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setAddress

void setAddress(String addr)
                throws UnknownHostException
Sets the address of the server of the connection. This is used in multi-homed servers to accept requests from the specified address only.

Parameters:
addr - the address of the server.
Throws:
UnknownHostException - if not found.


Copyright © 2004 The Norther Organization. All rights reserved.