Skip to content

Commit 84015d5

Browse files
committed
Loca source code example
0 parents  commit 84015d5

File tree

196 files changed

+38599
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+38599
-0
lines changed

pom.xml

Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.locamotion</groupId>
5+
<artifactId>WifiMap</artifactId>
6+
<packaging>war</packaging>
7+
<version>1.0-SNAPSHOT</version>
8+
<name>WifiMap</name>
9+
<url>http://maven.apache.org</url>
10+
11+
<properties>
12+
<spring.version>3.1.1.RELEASE</spring.version>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
</properties>
15+
16+
<dependencies>
17+
18+
<!-- Spring 3 dependencies -->
19+
<dependency>
20+
<groupId>org.springframework</groupId>
21+
<artifactId>spring-core</artifactId>
22+
<version>${spring.version}</version>
23+
<exclusions>
24+
<exclusion>
25+
<artifactId>commons-logging</artifactId>
26+
<groupId>commons-logging</groupId>
27+
</exclusion>
28+
</exclusions>
29+
</dependency>
30+
31+
<dependency>
32+
<groupId>org.springframework</groupId>
33+
<artifactId>spring-web</artifactId>
34+
<version>${spring.version}</version>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>org.springframework</groupId>
39+
<artifactId>spring-webmvc</artifactId>
40+
<version>${spring.version}</version>
41+
</dependency>
42+
43+
<dependency>
44+
<groupId>org.springframework</groupId>
45+
<artifactId>spring-context</artifactId>
46+
<version>${spring.version}</version>
47+
</dependency>
48+
49+
<dependency>
50+
<groupId>org.springframework</groupId>
51+
<artifactId>spring-aop</artifactId>
52+
<version>${spring.version}</version>
53+
</dependency>
54+
55+
<dependency>
56+
<groupId>org.springframework</groupId>
57+
<artifactId>spring-tx</artifactId>
58+
<version>${spring.version}</version>
59+
</dependency>
60+
61+
<dependency>
62+
<groupId>org.springframework</groupId>
63+
<artifactId>spring-orm</artifactId>
64+
<version>${spring.version}</version>
65+
</dependency>
66+
67+
<dependency>
68+
<groupId>org.springframework</groupId>
69+
<artifactId>spring-tx</artifactId>
70+
<version>${spring.version}</version>
71+
</dependency>
72+
73+
<dependency>
74+
<groupId>org.springframework</groupId>
75+
<artifactId>spring-orm</artifactId>
76+
<version>${spring.version}</version>
77+
</dependency>
78+
79+
<!-- Scribe -->
80+
<dependency>
81+
<groupId>org.scribe</groupId>
82+
<artifactId>scribe</artifactId>
83+
<version>1.3.0</version>
84+
</dependency>
85+
86+
<!-- JUnit -->
87+
<dependency>
88+
<groupId>junit</groupId>
89+
<artifactId>junit</artifactId>
90+
<version>4.8.1</version>
91+
<scope>test</scope>
92+
</dependency>
93+
94+
<!-- standard.jar -->
95+
<dependency>
96+
<groupId>taglibs</groupId>
97+
<artifactId>standard</artifactId>
98+
<version>1.1.2</version>
99+
<scope>compile</scope>
100+
</dependency>
101+
102+
<!-- JSTL -->
103+
<dependency>
104+
<groupId>javax.servlet</groupId>
105+
<artifactId>jstl</artifactId>
106+
<version>1.1.2</version>
107+
<scope>compile</scope>
108+
</dependency>
109+
110+
<dependency>
111+
<groupId>javax.servlet</groupId>
112+
<artifactId>servlet-api</artifactId>
113+
<version>2.4</version>
114+
<scope>provided</scope>
115+
</dependency>
116+
117+
<!-- Tiles -->
118+
<dependency>
119+
<groupId>org.apache.tiles</groupId>
120+
<artifactId>tiles-jsp</artifactId>
121+
<version>2.2.2</version>
122+
<type>jar</type>
123+
<scope>compile</scope>
124+
</dependency>
125+
126+
<dependency>
127+
<groupId>org.slf4j</groupId>
128+
<artifactId>log4j-over-slf4j</artifactId>
129+
<version>1.6.4</version>
130+
</dependency>
131+
<dependency>
132+
<groupId>org.slf4j</groupId>
133+
<artifactId>slf4j-api</artifactId>
134+
<version>1.6.4</version>
135+
</dependency>
136+
137+
<!-- Gson: Java to Json conversion -->
138+
<dependency>
139+
<groupId>com.google.code.gson</groupId>
140+
<artifactId>gson</artifactId>
141+
<version>2.2</version>
142+
</dependency>
143+
144+
<dependency>
145+
<groupId>org.json</groupId>
146+
<artifactId>json</artifactId>
147+
<version>20090211</version>
148+
</dependency>
149+
<dependency>
150+
<groupId>commons-collections</groupId>
151+
<artifactId>commons-collections</artifactId>
152+
<version>3.1</version>
153+
</dependency>
154+
<dependency>
155+
<groupId>mysql-connector</groupId>
156+
<artifactId>mysql-connector-java</artifactId>
157+
<version>0.0.1-SNAPSHOT</version>
158+
</dependency>
159+
<dependency>
160+
<groupId>org.hibernate.javax.persistence</groupId>
161+
<artifactId>hibernate-jpa-2.0-api</artifactId>
162+
<version>1.0.0.Final</version>
163+
</dependency>
164+
<dependency>
165+
<groupId>org.hibernate</groupId>
166+
<artifactId>hibernate-core</artifactId>
167+
<version>3.6.0.Final</version>
168+
</dependency>
169+
<dependency>
170+
<groupId>javassist</groupId>
171+
<artifactId>javassist</artifactId>
172+
<version>3.12.0.GA</version>
173+
</dependency>
174+
<dependency>
175+
<groupId>commons-codec</groupId>
176+
<artifactId>commons-codec</artifactId>
177+
<version>1.4</version>
178+
</dependency>
179+
<!-- <dependency> -->
180+
<!-- <groupId>com.amazonaws</groupId> -->
181+
<!-- <artifactId>aws-java-sdk</artifactId> -->
182+
<!-- <version>1.3.11</version> -->
183+
<!-- </dependency> -->
184+
</dependencies>
185+
186+
<build>
187+
<finalName>WifiMap</finalName>
188+
189+
<resources>
190+
<resource>
191+
<targetPath>.</targetPath>
192+
<directory>src/main/config</directory>
193+
</resource>
194+
<resource>
195+
<targetPath>.</targetPath>
196+
<directory>src/main/resources</directory>
197+
</resource>
198+
</resources>
199+
200+
<plugins>
201+
<plugin>
202+
<groupId>org.codehaus.mojo</groupId>
203+
<artifactId>tomcat-maven-plugin</artifactId>
204+
<configuration>
205+
<url>http://127.0.0.1:8080/manager/html</url>
206+
<server>TomcatServer</server>
207+
<path>/WifiMap</path>
208+
</configuration>
209+
</plugin>
210+
211+
<plugin>
212+
<artifactId>maven-compiler-plugin</artifactId>
213+
<configuration>
214+
<source>1.6</source>
215+
<target>1.6</target>
216+
</configuration>
217+
</plugin>
218+
</plugins>
219+
</build>
220+
221+
<repositories>
222+
<repository>
223+
<id>spring-maven-release</id>
224+
<name>Spring Maven Release Repository</name>
225+
<url>http://maven.springframework.org/release</url>
226+
</repository>
227+
<repository>
228+
<id>foursquareapijava</id>
229+
<name>Foursquare V2 API for Java Repository</name>
230+
<url>http://foursquare-api-java.googlecode.com/svn/repository</url>
231+
</repository>
232+
</repositories>
233+
234+
</project>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**
2+
* Country.java
3+
*
4+
* Copyright (C) 2003 MaxMind LLC. All Rights Reserved.
5+
*
6+
* This library is free software; you can redistribute it and/or
7+
* modify it under the terms of the GNU Lesser General Public
8+
* License as published by the Free Software Foundation; either
9+
* version 2 of the License, or (at your option) any later version.
10+
*
11+
* This library is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
* General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public
17+
* License along with this library; if not, write to the Free Software
18+
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19+
*/
20+
21+
package com.maxmind.geoip;
22+
23+
/**
24+
* Represents a country.
25+
*
26+
* @author Matt Tucker
27+
*/
28+
public class Country {
29+
30+
private String code;
31+
private String name;
32+
33+
/**
34+
* Creates a new Country.
35+
*
36+
* @param code the country code.
37+
* @param name the country name.
38+
*/
39+
public Country(String code, String name) {
40+
this.code = code;
41+
this.name = name;
42+
}
43+
44+
/**
45+
* Returns the ISO two-letter country code of this country.
46+
*
47+
* @return the country code.
48+
*/
49+
public String getCode() {
50+
return code;
51+
}
52+
53+
/**
54+
* Returns the name of this country.
55+
*
56+
* @return the country name.
57+
*/
58+
public String getName() {
59+
return name;
60+
}
61+
}

0 commit comments

Comments
 (0)