XhrTransport implementations do not need to redeclare interface when extending from AbstractXhrTransport

(cherry picked from commit df0b26f)
This commit is contained in:
Juergen Hoeller
2015-09-21 20:48:29 +02:00
parent aa0f11788b
commit f1acd2882c
3 changed files with 5 additions and 5 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);