Skip to content

Commit

Permalink
Version 2.2.0 (plugable logging support)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vjekoslav Nesek committed Feb 7, 2015
1 parent ff6a7cf commit 644ed57
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you use maven for dependency management, add following snippet to pom.xml:
<dependency>
<groupId>com.nmote.xr</groupId>
<artifactId>nmote-xr</artifactId>
<version>2.1.0</version>
<version>2.2.0</version>
</dependency>

</dependencies>
Expand Down Expand Up @@ -85,6 +85,19 @@ Usage
}
```

* You can trace XML-RPC calls through LoggerAdapter. Configuration is made through
EndpointBuilder::debug builder method

```java
String url = "http://www.cookcomputing.com/xmlrpcsamples/math.rem";
Math m = EndpointBuilder.client(url, Math.class).debug().get();
System.out.println(m.add(2, 3));
```

To use your's logging framework of choice instead of System.err, implement
com.nmote.xr.log.LoggerAdapter interface.


* For production you will need to expose `com.nmote.xr.Endpoint` via one or more
`com.nmote.xr.XRServlet` instances. Endpoint handling client's request is passed
in either as a servlet request attribute or a servlet context attribute named
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.nmote.xr</groupId>
<artifactId>nmote-xr</artifactId>
<version>2.1.1</version>
<version>2.2.0</version>
<packaging>jar</packaging>
<name>nmote-xr</name>
<description>XML-RPC client server library</description>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/nmote/xr/About.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

public final class About implements Serializable {

public static final long serialVersionUID = 210L;
public static final long serialVersionUID = 220L;

public static final String COPYRIGHT = "Copyright (c) 2005-2014, Nmote ltd., All rights reserved";
public static final String COPYRIGHT = "Copyright (c) 2005-2015, Nmote ltd., All rights reserved";
public static final String NAME = "nmote-xr";
public static final String VERSION = "2.1.0";
public static final String VERSION = "2.2.0";

private About() {}

Expand Down

0 comments on commit 644ed57

Please sign in to comment.