cn.xishan.oftenporter.bridge.http.websocket.ClientCloseReason Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Porter-Bridge-Http Show documentation
Show all versions of Porter-Bridge-Http Show documentation
转接远程的http接口,服务器响应正确的数据格式必须是JResponse定义的格式。
客户端websocket使用"org.java-websocket:Java-WebSocket:1.5.2",项目地址https://github.com/TooTallNate/Java-WebSocket;
对Java-WebSocket做了适当修改。
The newest version!
package cn.xishan.oftenporter.bridge.http.websocket;
/**
* @author Created by https://github.com/CLovinr on 2017/11/20.
*/
public class ClientCloseReason
{
private int code;
private String reason;
public ClientCloseReason(int code, String reason)
{
this.code = code;
this.reason = reason;
}
public int getCode()
{
return code;
}
public void setCode(int code)
{
this.code = code;
}
public String getReason()
{
return reason;
}
public void setReason(String reason)
{
this.reason = reason;
}
@Override
public String toString()
{
return code + ":" + reason;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy