Package org.java_websocket.handshake
Class HandshakeImpl1Client
- java.lang.Object
-
- org.java_websocket.handshake.HandshakedataImpl1
-
- org.java_websocket.handshake.HandshakeImpl1Client
-
- All Implemented Interfaces:
ClientHandshake
,ClientHandshakeBuilder
,HandshakeBuilder
,Handshakedata
public class HandshakeImpl1Client extends HandshakedataImpl1 implements ClientHandshakeBuilder
Implementation for a client handshake
-
-
Constructor Summary
Constructors Constructor Description HandshakeImpl1Client()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getResourceDescriptor()
returns the HTTP Request-URI as defined by http://tools.ietf.org/html/rfc2616#section-5.1.2void
setResourceDescriptor(String resourceDescriptor)
Set a specific resource descriptor-
Methods inherited from class org.java_websocket.handshake.HandshakedataImpl1
getContent, getFieldValue, hasFieldValue, iterateHttpFields, put, setContent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.java_websocket.handshake.HandshakeBuilder
put, setContent
-
Methods inherited from interface org.java_websocket.handshake.Handshakedata
getContent, getFieldValue, hasFieldValue, iterateHttpFields
-
-
-
-
Method Detail
-
setResourceDescriptor
public void setResourceDescriptor(String resourceDescriptor) throws IllegalArgumentException
Description copied from interface:ClientHandshakeBuilder
Set a specific resource descriptor- Specified by:
setResourceDescriptor
in interfaceClientHandshakeBuilder
- Parameters:
resourceDescriptor
- the resource descriptior to set- Throws:
IllegalArgumentException
-
getResourceDescriptor
public String getResourceDescriptor()
Description copied from interface:ClientHandshake
returns the HTTP Request-URI as defined by http://tools.ietf.org/html/rfc2616#section-5.1.2- Specified by:
getResourceDescriptor
in interfaceClientHandshake
- Returns:
- the HTTP Request-URI
-
-