Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
#143: Implement ShieldRestClient interface in Abstract class
Browse files Browse the repository at this point in the history
  • Loading branch information
ampersand8 committed Sep 19, 2018
1 parent 465ee7c commit 4342f7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import org.springframework.http.HttpMethod
import org.springframework.web.client.RestTemplate

@Slf4j
abstract class ShieldRestClientImpl {
abstract class ShieldRestClientImpl implements ShieldRestClient {
protected ShieldConfig config
protected RestTemplate restTemplate

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.springframework.stereotype.Component

@Slf4j
@Component
class ShieldRestClientv1 extends ShieldRestClientImpl implements ShieldRestClient {
class ShieldRestClientv1 extends ShieldRestClientImpl {
public static final String HEADER_API_KEY = 'X-Shield-Token'
private final int apiVersion = 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import org.springframework.stereotype.Component

@Slf4j
@Component
class ShieldRestClientv2 extends ShieldRestClientImpl implements ShieldRestClient {
class ShieldRestClientv2 extends ShieldRestClientImpl {
public static final String HEADER_API_SESSION = 'X-Shield-Session'
private final int apiVersion = 2

Expand Down

0 comments on commit 4342f7e

Please sign in to comment.