Class DomainSocket
java.lang.Object
java.net.Socket
org.springframework.boot.buildpack.platform.socket.DomainSocket
- All Implemented Interfaces:
 Closeable,AutoCloseable
A 
Socket implementation for Linux of BSD domain sockets.- Since:
 - 2.3.0
 - Author:
 - Phillip Webb
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byteprotected static final intprotected static final int - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract voidvoidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) static DomainSocketReturn a newDomainSocketfor the given path.booleanisBound()booleanvoidvoidvoidwrite(ByteBuffer buffer) Methods inherited from class java.net.Socket
bind, 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 
- 
Field Details
- 
PF_LOCAL
protected static final int PF_LOCAL- See Also:
 
 - 
AF_LOCAL
protected static final byte AF_LOCAL- See Also:
 
 - 
SOCK_STREAM
protected static final int SOCK_STREAM- See Also:
 
 
 - 
 - 
Method Details
- 
write
- Throws:
 IOException
 - 
getInputStream
- Overrides:
 getInputStreamin classSocket
 - 
getOutputStream
- Overrides:
 getOutputStreamin classSocket
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Overrides:
 closein classSocket- Throws:
 IOException
 - 
connect
 - 
get
Return a newDomainSocketfor the given path.- Parameters:
 path- the path to the domain socket- Returns:
 - a 
DomainSocketinstance - Throws:
 IOException- if the socket cannot be opened
 - 
connect
- Overrides:
 connectin classSocket- Throws:
 IOException
 - 
connect
- Overrides:
 connectin classSocket- Throws:
 IOException
 - 
isConnected
public boolean isConnected()- Overrides:
 isConnectedin classSocket
 - 
isBound
public boolean isBound() - 
shutdownInput
- Overrides:
 shutdownInputin classSocket- Throws:
 IOException
 - 
shutdownOutput
- Overrides:
 shutdownOutputin classSocket- Throws:
 IOException
 - 
getInetAddress
- Overrides:
 getInetAddressin classSocket
 - 
getLocalAddress
- Overrides:
 getLocalAddressin classSocket
 - 
getLocalSocketAddress
- Overrides:
 getLocalSocketAddressin classSocket
 - 
getRemoteSocketAddress
- Overrides:
 getRemoteSocketAddressin classSocket
 
 -