本文整理了Java中org.eclipse.jetty.client.HttpClient.stop()
方法的一些代码示例,展示了HttpClient.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpClient.stop()
方法的具体详情如下:
包路径:org.eclipse.jetty.client.HttpClient
类名称:HttpClient
方法名:stop
暂无
代码示例来源:origin: apache/incubator-druid
@Override
public void stop()
{
try {
httpClient.stop();
}
catch (Exception e) {
throw Throwables.propagate(e);
}
}
}
代码示例来源:origin: 4thline/cling
@Override
public void stop() {
try {
client.stop();
} catch (Exception ex) {
log.info("Error stopping HTTP client: " + ex);
}
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public void stop() {
try {
if (this.httpClient.isRunning()) {
this.httpClient.stop();
}
}
catch (Exception ex) {
throw new SockJsException("Failed to stop JettyXhrTransport", ex);
}
}
代码示例来源:origin: jersey/jersey
@Override
public void close() {
try {
client.stop();
} catch (final Exception e) {
throw new ProcessingException("Failed to stop the client.", e);
}
}
}
代码示例来源:origin: apache/incubator-druid
@Override
public void destroy()
{
super.destroy();
try {
broadcastClient.stop();
}
catch (Exception e) {
log.warn(e, "Error stopping servlet");
}
}
代码示例来源:origin: konsoletyper/teavm
@Override
public void destroy() {
super.destroy();
try {
wsFactory.stop();
} catch (Exception e) {
log.warning("Error stopping WebSocket server", e);
}
if (proxyUrl != null) {
try {
httpClient.stop();
} catch (Exception e) {
log.warning("Error stopping HTTP client", e);
}
try {
wsClient.stop();
} catch (Exception e) {
log.warning("Error stopping WebSocket client", e);
}
}
stopped = true;
synchronized (statusLock) {
if (waiting) {
buildThread.interrupt();
}
}
}
代码示例来源:origin: xuxueli/xxl-job
} finally {
if (httpClient != null) {
httpClient.stop();
代码示例来源:origin: xuxueli/xxl-job
} finally {
if (httpClient != null) {
httpClient.stop();
代码示例来源:origin: resteasy/Resteasy
@Override
public void close() {
try {
client.stop();
} catch (Exception e) {
throw new RuntimeException("Unable to close JettyHttpEngine", e);
}
}
代码示例来源:origin: kingthy/TVRemoteIME
@Override
public void stop() {
try {
client.stop();
} catch (Exception ex) {
log.info("Error stopping HTTP client: " + ex);
}
}
代码示例来源:origin: allegro/hermes
@Override
public void stop() {
try {
this.httpClient.stop();
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}
}
代码示例来源:origin: io.digdag/digdag-standards
private void stop(HttpClient httpClient)
{
try {
httpClient.stop();
}
catch (Exception e) {
logger.warn("Failed to stop http client", e);
}
}
}
代码示例来源:origin: io.druid/druid-server
@Override
public void stop()
{
try {
httpClient.stop();
}
catch (Exception e) {
throw Throwables.propagate(e);
}
}
}
代码示例来源:origin: org.apache.druid/druid-server
@Override
public void stop()
{
try {
httpClient.stop();
}
catch (Exception e) {
throw Throwables.propagate(e);
}
}
}
代码示例来源:origin: allegro/hermes
private void stopClient(HttpClient client) {
if (client.isRunning()) {
try {
client.stop();
} catch (Exception ex) {
logger.error("Could not stop http client", ex);
}
}
}
}
代码示例来源:origin: org.apache.druid/druid-server
@Override
public void destroy()
{
super.destroy();
try {
broadcastClient.stop();
}
catch (Exception e) {
log.warn(e, "Error stopping servlet");
}
}
代码示例来源:origin: io.druid/druid-server
@Override
public void destroy()
{
super.destroy();
try {
broadcastClient.stop();
}
catch (Exception e) {
log.warn(e, "Error stopping servlet");
}
}
代码示例来源:origin: org.infinispan/infinispan-server-rest
public void stop() throws Exception {
if (http2)
nettyHttpClient.stop();
else
http1Client.stop();
executor.shutdownNow();
}
代码示例来源:origin: allegro/hermes
@AfterClass
public static void cleanEnvironment() throws Exception {
wireMockServer.shutdown();
client.stop();
}
代码示例来源:origin: org.infinispan/infinispan-server-rest
@Override
protected void teardown() {
try {
logAppender.uninstall();
client.stop();
restServer.stop();
} catch (Exception e) {
}
super.teardown();
}
内容来源于网络,如有侵权,请联系作者删除!