XhrTransport implementations do not need to redeclare interface when extending from AbstractXhrTransport
(cherry picked from commit df0b26f)
This commit is contained in:
@@ -44,7 +44,6 @@ import org.springframework.web.socket.sockjs.SockJsException;
|
||||
import org.springframework.web.socket.sockjs.SockJsTransportFailureException;
|
||||
import org.springframework.web.socket.sockjs.frame.SockJsFrame;
|
||||
|
||||
|
||||
/**
|
||||
* An XHR transport based on Jetty's {@link org.eclipse.jetty.client.HttpClient}.
|
||||
*
|
||||
@@ -61,7 +60,7 @@ import org.springframework.web.socket.sockjs.frame.SockJsFrame;
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 4.1
|
||||
*/
|
||||
public class JettyXhrTransport extends AbstractXhrTransport implements XhrTransport, Lifecycle {
|
||||
public class JettyXhrTransport extends AbstractXhrTransport implements Lifecycle {
|
||||
|
||||
private final HttpClient httpClient;
|
||||
|
||||
@@ -105,6 +104,7 @@ public class JettyXhrTransport extends AbstractXhrTransport implements XhrTransp
|
||||
return this.httpClient.isRunning();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected ResponseEntity<String> executeInfoRequestInternal(URI infoUrl) {
|
||||
return executeRequest(infoUrl, HttpMethod.GET, getRequestHeaders(), null);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -50,7 +50,7 @@ import org.springframework.web.socket.sockjs.frame.SockJsFrame;
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 4.1
|
||||
*/
|
||||
public class RestTemplateXhrTransport extends AbstractXhrTransport implements XhrTransport {
|
||||
public class RestTemplateXhrTransport extends AbstractXhrTransport {
|
||||
|
||||
private final RestOperations restTemplate;
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ import org.springframework.web.socket.sockjs.frame.SockJsFrame;
|
||||
* @since 4.1.2
|
||||
* @see org.xnio.Options
|
||||
*/
|
||||
public class UndertowXhrTransport extends AbstractXhrTransport implements XhrTransport {
|
||||
public class UndertowXhrTransport extends AbstractXhrTransport {
|
||||
|
||||
private static final AttachmentKey<String> RESPONSE_BODY = AttachmentKey.create(String.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user