本文整理了Java中org.apache.catalina.Server.getAddress()
方法的一些代码示例,展示了Server.getAddress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getAddress()
方法的具体详情如下:
包路径:org.apache.catalina.Server
类名称:Server
方法名:getAddress
[英]Return the address on which we listen to for shutdown commands.
[中]返回我们监听关机命令的地址。
代码示例来源:origin: zzzzbw/doodle
@Override
public void startServer() throws Exception {
tomcat.start();
String address = tomcat.getServer().getAddress();
int port = tomcat.getConnector().getPort();
log.info("local address: http://{}:{}", address, port);
tomcat.getServer().await();
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
try {
if (s.getPort()>0) {
Socket socket = new Socket(s.getAddress(), s.getPort());
OutputStream stream = socket.getOutputStream();
String shutdown = s.getShutdown();
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
try {
if (s.getPort()>0) {
Socket socket = new Socket(s.getAddress(), s.getPort());
OutputStream stream = socket.getOutputStream();
String shutdown = s.getShutdown();
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
try {
if (s.getPort()>0) {
Socket socket = new Socket(s.getAddress(), s.getPort());
OutputStream stream = socket.getOutputStream();
String shutdown = s.getShutdown();
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
try {
if (s.getPort()>0) {
Socket socket = new Socket(s.getAddress(), s.getPort());
OutputStream stream = socket.getOutputStream();
String shutdown = s.getShutdown();
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
try (Socket socket = new Socket(s.getAddress(), s.getPort());
OutputStream stream = socket.getOutputStream()) {
String shutdown = s.getShutdown();
} catch (ConnectException ce) {
log.error(sm.getString("catalina.stopServer.connectException",
s.getAddress(),
String.valueOf(s.getPort())));
log.error("Catalina.stop: ", ce);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
OutputStream stream = null;
try {
socket = new Socket(s.getAddress(), s.getPort());
stream = socket.getOutputStream();
String shutdown = s.getShutdown();
代码示例来源:origin: codefollower/Tomcat-Research
OutputStream stream = null;
try {
socket = new Socket(s.getAddress(), s.getPort());
stream = socket.getOutputStream();
String shutdown = s.getShutdown();
} catch (ConnectException ce) {
log.error(sm.getString("catalina.stopServer.connectException",
s.getAddress(),
String.valueOf(s.getPort())));
log.error("Catalina.stop: ", ce);
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
try (Socket socket = new Socket(s.getAddress(), s.getPortWithOffset());
OutputStream stream = socket.getOutputStream()) {
String shutdown = s.getShutdown();
log.error(sm.getString("catalina.stopServer.connectException", s.getAddress(),
String.valueOf(s.getPortWithOffset()), String.valueOf(s.getPort()),
String.valueOf(s.getPortOffset())));
代码示例来源:origin: com.tomitribe.tribestream/tribestream-container
StandardEngine engine = null;
LOGGER.fine(ValveCodes.INSTALLER_SERVER_FOUND, String.format("Found server %s on address %s to process.",
server.getInfo(), server.getAddress()));
内容来源于网络,如有侵权,请联系作者删除!