Class UnixDomainSocket
java.lang.Object
java.net.Socket
org.springframework.boot.buildpack.platform.socket.UnixDomainSocket
- All Implemented Interfaces:
- Closeable,- AutoCloseable
A 
Socket implementation for Unix domain sockets.- Since:
- 3.4.0
- Author:
- Scott Frederick
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) static SocketCreate a newSocketfor the given path.booleanisBound()booleanvoidvoidMethods inherited from class java.net.Socketbind, getChannel, getKeepAlive, getLocalPort, getOOBInline, getOption, getPort, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, supportedOptions, toString
- 
Method Details- 
getCreate a newSocketfor the given path.- Parameters:
- path- the path to the domain socket
- Returns:
- a Socketinstance
- Throws:
- IOException- if the socket cannot be opened
 
- 
getInputStream- Overrides:
- getInputStreamin class- Socket
- Throws:
- IOException
 
- 
getOutputStream- Overrides:
- getOutputStreamin class- Socket
- Throws:
- IOException
 
- 
getLocalSocketAddress
- 
getRemoteSocketAddress
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- Socket
- Throws:
- IOException
 
- 
connect- Overrides:
- connectin class- Socket
- Throws:
- IOException
 
- 
connect- Overrides:
- connectin class- Socket
- Throws:
- IOException
 
- 
isConnectedpublic boolean isConnected()- Overrides:
- isConnectedin class- Socket
 
- 
isBoundpublic boolean isBound()
- 
shutdownInput- Overrides:
- shutdownInputin class- Socket
- Throws:
- IOException
 
- 
shutdownOutput- Overrides:
- shutdownOutputin class- Socket
- Throws:
- IOException
 
- 
getInetAddress- Overrides:
- getInetAddressin class- Socket
 
- 
getLocalAddress- Overrides:
- getLocalAddressin class- Socket
 
 
-