MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / TomcatSetPort

Method TomcatSetPort

class/projectModel/javaModel.py:1592–1606  ·  view source on GitHub ↗

@name 更改tomcat端口 @author lkq @param port: string<端口号>

(self, port)

Source from the content-addressed store, hash-verified

1590 return self.set_site_port(get.port, "", get.domain.strip())
1591
1592 def TomcatSetPort(self, port):
1593 ''&#x27;
1594 @name 更改tomcat端口
1595 @author lkq
1596 @param port: string<端口号>
1597 ''&#x27;
1598 for i in self.__CONNECTROR:
1599 if 'protocol' in i.attrib and 'port' in i.attrib:
1600 if i.attrib['protocol'] == 'HTTP/1.1':
1601 i.attrib['port'] = port
1602 self.save_tomcat()
1603 if self.get_port() == int(port):
1604 return True
1605 else:
1606 return False
1607
1608 # 获取指定虚拟主机
1609 def Set_Domain_path(self, domain, docBase):

Callers 3

set_tomcat_duli_portMethod · 0.95
replce_tomcat_portMethod · 0.95
set_site_portMethod · 0.95

Calls 2

save_tomcatMethod · 0.95
get_portMethod · 0.95

Tested by

no test coverage detected