2026-03-17 13:31:18 -07:00

48 lines
1.3 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.tridium.platform.daemon.message.DaemonMessage
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platform.daemon.message.DaemonMessage;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
public class CryptoServletMessage
extends DaemonMessage {
private static final String ENC = "UTF-8";
private StringBuilder message = new StringBuilder("crypto");
public String getAction() {
return "sendAliases";
}
public String getMessageString() {
return this.message.toString();
}
protected void add(String string, String string2) {
this.message.append("&").append(CryptoServletMessage.encode(string)).append("=").append(CryptoServletMessage.encode(string2));
}
private static final String encode(String string) {
String string2 = "";
if (string != null) {
try {
string2 = URLEncoder.encode(string, ENC);
}
catch (UnsupportedEncodingException unsupportedEncodingException) {
string2 = URLEncoder.encode(string);
}
}
return string2;
}
public CryptoServletMessage() {
this.message.append("?action=").append(this.getAction());
}
}