Skip to content

Commit f06d5d0

Browse files
committed
Refactoring/Renaming
1 parent c9fce71 commit f06d5d0

File tree

26 files changed

+54
-77
lines changed

26 files changed

+54
-77
lines changed

cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/DateTimeValue.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
* <p>
1111
* When serialized into a String, the value will be formatted using timezone "UTC" and format
1212
* <code>"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"</code>.
13-
*
14-
* @author d029740
1513
*
1614
*/
1715
public class DateTimeValue implements Value {

cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/DoubleValue.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* A {@link Value} implementation representing a <i>double</i> value.
9-
*
10-
* @author d029740
119
*
1210
*/
1311
public class DoubleValue implements Value {
@@ -19,7 +17,7 @@ public DoubleValue(Object value) {
1917
this.value = ((Double) value).doubleValue();
2018
}
2119
else {
22-
value = 0.0;
20+
this.value = 0.0;
2321
}
2422
}
2523

cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/LongValue.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* A {@link Value} implementation representing a <i>long</i> value.
5-
*
6-
* @author d029740
75
*
86
*/
97
public class LongValue implements Value {

cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/Markers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
/**
77
* Predefined {@link Marker} instances that are used in the layout pattern configuration.
8-
*
9-
* @author d029740
108
*
119
*/
1210
public class Markers {

cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/StringValue.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* A {@link Value} implementation representing a <i>string</i>.
5-
*
6-
* @author d029740
75
*
86
*/
97
public class StringValue implements Value {

cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/Value.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* A simple <i>value</i> interface to store, well, a value.
55
* We're not into generics here, but rather use a simple interface that allows us to
66
* store different value types in a map.
7-
*
8-
* @author d029740
97
*
108
*/
119
public interface Value {

cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class Version {
88

99
public static final String UNKNOWN = "???";
10-
private static final String POM_PROPS_PATH = "META-INF/maven/com.sap.hcp.perfx.logging/java-logging-support-core/pom.properties";
10+
private static final String POM_PROPS_PATH = "META-INF/maven/com.sap.hcp.cf.logging/java-logging-support-core/pom.properties";
1111
private static final String KEY_VERSION = "version";
1212

1313
public static final Version INSTANCE = new Version();
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.sap.hcp.cf.logging.jersey.filter;
22

3-
import static com.sap.hcp.cf.logging.jersey.filter.Utils.REQ_RECORD_KEY;
3+
import static com.sap.hcp.cf.logging.jersey.filter.Utils.REQ_METRICS_KEY;
44

55
import java.io.IOException;
66

@@ -9,16 +9,16 @@
99
import javax.ws.rs.ext.Provider;
1010

1111
@Provider
12-
public class PerfXClientRequestFilter implements ClientRequestFilter {
12+
public class RequestMetricsClientRequestFilter implements ClientRequestFilter {
1313

1414
private final RequestHandler handler;
1515

16-
public PerfXClientRequestFilter() {
16+
public RequestMetricsClientRequestFilter() {
1717
this.handler = new RequestHandler();
1818
}
1919

2020
public void filter(ClientRequestContext requestContext) throws IOException {
21-
requestContext.setProperty(REQ_RECORD_KEY, handler.handle(new ClientRequestContextAdapter(requestContext)));
21+
requestContext.setProperty(REQ_METRICS_KEY, handler.handle(new ClientRequestContextAdapter(requestContext)));
2222
}
2323

2424
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import com.sap.hcp.cf.logging.common.RequestRecord;
66

7-
import static com.sap.hcp.cf.logging.jersey.filter.Utils.REQ_RECORD_KEY;
7+
import static com.sap.hcp.cf.logging.jersey.filter.Utils.REQ_METRICS_KEY;
88

99
import java.io.IOException;
1010

@@ -14,19 +14,19 @@
1414
import javax.ws.rs.ext.Provider;
1515

1616
@Provider
17-
public class PerfXClientResponseFilter implements ClientResponseFilter {
17+
public class RequestMetricsClientResponseFilter implements ClientResponseFilter {
1818

1919
private final ResponseHandler handler;
2020

21-
public PerfXClientResponseFilter() {
21+
public RequestMetricsClientResponseFilter() {
2222
this.handler = new ResponseHandler();
2323
}
2424
public void filter(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {
2525
try {
26-
handler.handle(new ClientResponseContextAdapter(responseContext), (RequestRecord) requestContext.getProperty(REQ_RECORD_KEY));
26+
handler.handle(new ClientResponseContextAdapter(responseContext), (RequestRecord) requestContext.getProperty(REQ_METRICS_KEY));
2727
}
2828
catch (Exception ex) {
29-
LoggerFactory.getLogger(PerfXClientResponseFilter.class).error("Can't handle client response", ex);
29+
LoggerFactory.getLogger(RequestMetricsClientResponseFilter.class).error("Can't handle client response", ex);
3030
}
3131
}
3232

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.sap.hcp.cf.logging.jersey.filter;
22

3-
import static com.sap.hcp.cf.logging.jersey.filter.Utils.REQ_RECORD_KEY;
3+
import static com.sap.hcp.cf.logging.jersey.filter.Utils.REQ_METRICS_KEY;
44

55
import java.io.IOException;
66

@@ -11,15 +11,15 @@
1111

1212
@Provider
1313
@PreMatching
14-
public class PerfXContainerRequestFilter implements ContainerRequestFilter {
14+
public class RequestMetricsContainerRequestFilter implements ContainerRequestFilter {
1515

1616
private final RequestHandler handler;
1717

18-
public PerfXContainerRequestFilter() {
18+
public RequestMetricsContainerRequestFilter() {
1919
this.handler = new RequestHandler();
2020
}
2121
public void filter(ContainerRequestContext requestContext) throws IOException {
22-
requestContext.setProperty(REQ_RECORD_KEY, handler.handle(new ContainerRequestContextAdapter(requestContext)));
22+
requestContext.setProperty(REQ_METRICS_KEY, handler.handle(new ContainerRequestContextAdapter(requestContext)));
2323
}
2424

2525
}

0 commit comments

Comments
 (0)