com.webpieces.http2engine.api.error.UserInitiatedConnectionClose Maven / Gradle / Ivy
package com.webpieces.http2engine.api.error;
import com.webpieces.http2.api.dto.error.CancelReasonCode;
public class UserInitiatedConnectionClose implements ShutdownConnection {
private String reason;
private static final CancelReasonCode failReason = CancelReasonCode.APPLICATION_INITIATED_CLOSE;
public UserInitiatedConnectionClose(String reason) {
super();
this.reason = reason;
}
@Override
public String getReason() {
return reason;
}
@Override
public CancelReasonCode getReasonCode() {
return failReason;
}
@Override
public String toString() {
return "UserInitiatedConnectionClose [reason=" + reason + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy