Skip to content

Commit

Permalink
Added javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsorba committed Sep 10, 2016
1 parent 72e473f commit 709012c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -4,7 +4,7 @@

<groupId>org.piwik.java.tracking</groupId>
<artifactId>piwik-java-tracker</artifactId>
<version>1.2.1-SNAPSHOT</version>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Piwik Java Tracker</name>
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/piwik/java/tracking/PiwikTracker.java
Expand Up @@ -46,6 +46,13 @@ public PiwikTracker(String hostUrl){
this(hostUrl, DEFAULT_TIMEOUT);
}

/**
* Creates a tracker that will send {@link PiwikRequest}s to the specified
* Tracking HTTP API endpoint.
* @param hostUrl url endpoint to send requests to. Usually in the format
* <strong>http://your-piwik-domain.tld/piwik.php</strong>.
* @param timeout the timeout of the sent request in milliseconds
*/
public PiwikTracker(String hostUrl, int timeout){
uriBuilder = UriBuilder.fromPath(hostUrl);
this.timeout = timeout;
Expand Down

0 comments on commit 709012c

Please sign in to comment.