Class Socket
- java.lang.Object
-
- co.elastic.apm.agent.impl.context.Socket
-
- All Implemented Interfaces:
Recyclable
public class Socket extends java.lang.Object implements Recyclable
-
-
Constructor Summary
Constructors Constructor Description Socket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(Socket other)java.lang.StringgetRemoteAddress()booleanhasContent()booleanisEncrypted()Indicates whether request was sent as SSL/HTTPS request.voidresetState()resets pooled object state so it can be reusedSocketwithEncrypted(boolean encrypted)Indicates whether request was sent as SSL/HTTPS request.SocketwithRemoteAddress(java.lang.String remoteAddress)
-
-
-
Method Detail
-
isEncrypted
public boolean isEncrypted()
Indicates whether request was sent as SSL/HTTPS request.
-
withEncrypted
public Socket withEncrypted(boolean encrypted)
Indicates whether request was sent as SSL/HTTPS request.
-
getRemoteAddress
@Nullable public java.lang.String getRemoteAddress()
-
withRemoteAddress
public Socket withRemoteAddress(@Nullable java.lang.String remoteAddress)
-
resetState
public void resetState()
Description copied from interface:Recyclableresets pooled object state so it can be reused- Specified by:
resetStatein interfaceRecyclable
-
copyFrom
public void copyFrom(Socket other)
-
hasContent
public boolean hasContent()
-
-