6 changed files with 40 additions and 175 deletions
-
1src/main/java/com/corundumstudio/socketio/SocketIOChannelInitializer.java
-
87src/main/java/com/corundumstudio/socketio/SocketIOEncoder.java
-
26src/main/java/com/corundumstudio/socketio/messages/XHRNewChannelMessage.java
-
40src/main/java/com/corundumstudio/socketio/messages/XHRPacketMessage.java
-
21src/main/java/com/corundumstudio/socketio/messages/XHRSendPacketsMessage.java
-
40src/main/java/com/corundumstudio/socketio/transport/XHRPollingClient.java
@ -1,26 +0,0 @@ |
|||
/** |
|||
* Copyright 2012 Nikita Koksharov |
|||
* |
|||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|||
* you may not use this file except in compliance with the License. |
|||
* You may obtain a copy of the License at |
|||
* |
|||
* http://www.apache.org/licenses/LICENSE-2.0 |
|||
* |
|||
* Unless required by applicable law or agreed to in writing, software |
|||
* distributed under the License is distributed on an "AS IS" BASIS, |
|||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
* See the License for the specific language governing permissions and |
|||
* limitations under the License. |
|||
*/ |
|||
package com.corundumstudio.socketio.messages; |
|||
|
|||
import java.util.UUID; |
|||
|
|||
public class XHRNewChannelMessage extends HttpMessage { |
|||
|
|||
public XHRNewChannelMessage(String origin, UUID sessionId) { |
|||
super(origin, sessionId); |
|||
} |
|||
|
|||
} |
@ -1,40 +0,0 @@ |
|||
/** |
|||
* Copyright 2012 Nikita Koksharov |
|||
* |
|||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|||
* you may not use this file except in compliance with the License. |
|||
* You may obtain a copy of the License at |
|||
* |
|||
* http://www.apache.org/licenses/LICENSE-2.0 |
|||
* |
|||
* Unless required by applicable law or agreed to in writing, software |
|||
* distributed under the License is distributed on an "AS IS" BASIS, |
|||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
* See the License for the specific language governing permissions and |
|||
* limitations under the License. |
|||
*/ |
|||
package com.corundumstudio.socketio.messages; |
|||
|
|||
import java.util.UUID; |
|||
|
|||
import com.corundumstudio.socketio.parser.Packet; |
|||
|
|||
public class XHRPacketMessage extends HttpMessage { |
|||
|
|||
private final Packet packet; |
|||
|
|||
public XHRPacketMessage(UUID sessionId, String origin, Packet packet) { |
|||
super(origin, sessionId); |
|||
this.packet = packet; |
|||
} |
|||
|
|||
public Packet getPacket() { |
|||
return packet; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return "XHRPacketMessage [packet=" + packet + "]"; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.corundumstudio.socketio.messages; |
|||
|
|||
import java.util.Queue; |
|||
import java.util.UUID; |
|||
|
|||
import com.corundumstudio.socketio.parser.Packet; |
|||
|
|||
public class XHRSendPacketsMessage extends HttpMessage { |
|||
|
|||
private final Queue<Packet> packetQueue; |
|||
|
|||
public XHRSendPacketsMessage(UUID sessionId, String origin, Queue<Packet> packetQueue) { |
|||
super(origin, sessionId); |
|||
this.packetQueue = packetQueue; |
|||
} |
|||
|
|||
public Queue<Packet> getPacketQueue() { |
|||
return packetQueue; |
|||
} |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue