com.infomaximum.network.struct.info.TransportInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network Show documentation
Show all versions of network Show documentation
Library for creating a light http server
The newest version!
package com.infomaximum.network.struct.info;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TransportInfo {
private final List connectorsInfo;
public TransportInfo() {
this.connectorsInfo = new ArrayList<>();
}
public void addConnectorInfo(HttpConnectorInfo httpConnectorInfo) {
connectorsInfo.add(httpConnectorInfo);
}
public List extends HttpConnectorInfo> getConnectorsInfo() {
return Collections.unmodifiableList(connectorsInfo);
}
@Override
public String toString() {
return "Transport{" +
"connectors=" + connectorsInfo +
'}';
}
}