File tree Expand file tree Collapse file tree
src/net/tootallnate/websocket Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package net .tootallnate .websocket ;
22
33public interface HandshakeBuilder extends Handshakedata {
4-
4+ public abstract void setHttpVersion ( String version );
5+ public abstract void setMethod ( String method );
56 public abstract void setContent ( byte [] content );
6-
77 public abstract void setResourceDescriptor ( String resourcedescriptor );
8-
8+ public abstract void setHttpStatus ( short status );
99 public abstract void setHttpStatusMessage ( String message );
10-
1110 public abstract void put ( String name , String value );
12-
13- }
11+ }
Original file line number Diff line number Diff line change 44import java .util .Iterator ;
55
66public interface Handshakedata {
7+ public String getHttpVersion ();
8+ public String getMethod ();
9+ public short getHttpStatus ();
710 public String getHttpStatusMessage ();
811 public String getResourceDescriptor ();
912 public Iterator <String > iterateHttpFields ();
Original file line number Diff line number Diff line change 88
99public class HandshakedataImpl1 implements HandshakeBuilder {
1010
11+ private String httpversion ;
12+ private String method ;
13+ private short httpstatus ;
1114 private String httpstatusmessage ;
1215 private String resourcedescriptor ;
1316 private byte [] content ;
@@ -85,4 +88,31 @@ public void setHttpStatusMessage( String message ) {
8588
8689 }
8790
91+ @ Override
92+ public short getHttpStatus () {
93+ return httpstatus ;
94+ }
95+
96+ @ Override
97+ public void setHttpStatus ( short status ) {
98+ httpstatus = status ;
99+ }
100+
101+ @ Override
102+ public String getHttpVersion () {
103+ return httpversion ;
104+ }
105+
106+ public void setHttpVersion ( String version ) {
107+ httpversion = version ;
108+ }
109+
110+ public String getMethod () {
111+ return method ;
112+ }
113+
114+ public void setMethod ( String method ) {
115+ this .method = method ;
116+ }
117+
88118}
You can’t perform that action at this time.
0 commit comments