Class Socket

  • All Implemented Interfaces:
    Recyclable

    public class Socket
    extends java.lang.Object
    implements Recyclable
    • Constructor Detail

      • Socket

        public Socket()
    • 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: Recyclable
        resets pooled object state so it can be reused
        Specified by:
        resetState in interface Recyclable
      • copyFrom

        public void copyFrom​(Socket other)
      • hasContent

        public boolean hasContent()