Skip to content

Commit

Permalink
Renames package
Browse files Browse the repository at this point in the history
  • Loading branch information
fayderflorez committed Oct 1, 2017
1 parent 2df5e06 commit ce2245a
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 57 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fayder</groupId>
<groupId>eu.fayder</groupId>
<artifactId>restcountries</artifactId>
<version>2.0.4</version>
<packaging>war</packaging>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fayder.restcountries.domain;
package eu.fayder.restcountries.domain;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package fayder.restcountries.domain;
package eu.fayder.restcountries.domain;

public interface ICountryRestSymbols {
public static final String SEMICOLON = ";";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.domain;
package eu.fayder.restcountries.domain;

public class ResponseEntity {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.rest;
package eu.fayder.restcountries.rest;

import com.google.gson.Gson;
import com.google.gson.stream.JsonReader;
import fayder.restcountries.domain.BaseCountry;
import fayder.restcountries.domain.ICountryRestSymbols;
import eu.fayder.restcountries.domain.BaseCountry;
import eu.fayder.restcountries.domain.ICountryRestSymbols;
import org.apache.log4j.Logger;

import java.io.InputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fayder.restcountries.servlet;
package eu.fayder.restcountries.servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fayder.restcountries.servlet;
package eu.fayder.restcountries.servlet;

import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package fayder.restcountries.servlet;
package eu.fayder.restcountries.servlet;

import fayder.restcountries.v1.rest.CountryRest;
import eu.fayder.restcountries.v1.rest.CountryRest;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
Expand All @@ -13,7 +13,7 @@ public class RestApplication extends Application {

public RestApplication() {
singletons.add(new CountryRest());
singletons.add(new fayder.restcountries.v2.rest.CountryRest());
singletons.add(new eu.fayder.restcountries.v2.rest.CountryRest());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v1.domain;
package eu.fayder.restcountries.v1.domain;

import java.util.List;

import fayder.restcountries.domain.BaseCountry;
import org.codehaus.jackson.annotate.JsonProperty;
import eu.fayder.restcountries.domain.BaseCountry;

public class Country extends BaseCountry {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v1.domain;
package eu.fayder.restcountries.v1.domain;

public class CountryTranslations {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v1.rest;
package eu.fayder.restcountries.v1.rest;

import java.util.List;

Expand All @@ -16,12 +16,10 @@
import javax.ws.rs.core.Response.Status;
import javax.ws.rs.ext.Provider;

import fayder.restcountries.v1.domain.Country;
import org.apache.commons.codec.binary.StringUtils;
import eu.fayder.restcountries.domain.ResponseEntity;
import eu.fayder.restcountries.v1.domain.Country;
import org.apache.log4j.Logger;

import fayder.restcountries.domain.ResponseEntity;

import com.google.gson.Gson;

@Provider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v1.rest;
package eu.fayder.restcountries.v1.rest;

import fayder.restcountries.rest.CountryServiceBase;
import fayder.restcountries.v1.domain.Country;
import eu.fayder.restcountries.rest.CountryServiceBase;
import eu.fayder.restcountries.v1.domain.Country;
import org.apache.log4j.Logger;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fayder.restcountries.v2.domain;
package eu.fayder.restcountries.v2.domain;

/**
* Created by fayder on 24/02/2017.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v2.domain;
package eu.fayder.restcountries.v2.domain;

import fayder.restcountries.domain.BaseCountry;
import org.codehaus.jackson.annotate.JsonIgnore;
import eu.fayder.restcountries.domain.BaseCountry;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v2.domain;
package eu.fayder.restcountries.v2.domain;

public class Currency {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v2.domain;
package eu.fayder.restcountries.v2.domain;

public class Language {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fayder.restcountries.v2.domain;
package eu.fayder.restcountries.v2.domain;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package fayder.restcountries.v2.domain;
package eu.fayder.restcountries.v2.domain;

import fayder.restcountries.v1.domain.CountryTranslations;
import eu.fayder.restcountries.v1.domain.CountryTranslations;

/**
* Created by fayder on 05/03/2017.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v2.rest;
package eu.fayder.restcountries.v2.rest;

import com.google.gson.*;
import fayder.restcountries.domain.ICountryRestSymbols;
import fayder.restcountries.v2.domain.Country;
import eu.fayder.restcountries.domain.ResponseEntity;
import eu.fayder.restcountries.v2.domain.Country;
import eu.fayder.restcountries.domain.ICountryRestSymbols;
import org.apache.log4j.Logger;
import fayder.restcountries.domain.ResponseEntity;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.ObjectWriter;
import org.codehaus.jackson.map.ser.FilterProvider;
import org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter;
import org.codehaus.jackson.map.ser.impl.SimpleFilterProvider;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v2.rest;
package eu.fayder.restcountries.v2.rest;

import fayder.restcountries.rest.CountryServiceBase;
import fayder.restcountries.v2.domain.Country;
import fayder.restcountries.v2.domain.Currency;
import fayder.restcountries.v2.domain.Language;
import fayder.restcountries.v2.domain.RegionalBloc;
import eu.fayder.restcountries.v2.domain.Country;
import eu.fayder.restcountries.v2.domain.Language;
import eu.fayder.restcountries.rest.CountryServiceBase;
import eu.fayder.restcountries.v2.domain.Currency;
import eu.fayder.restcountries.v2.domain.RegionalBloc;
import org.apache.log4j.Logger;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries;
package eu.fayder.restcountries;

import com.google.gson.Gson;
import com.google.gson.stream.JsonReader;
import fayder.restcountries.domain.BaseCountry;
import eu.fayder.restcountries.domain.BaseCountry;
import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v1;
package eu.fayder.restcountries.v1;

import java.util.List;

import fayder.restcountries.v1.domain.Country;
import eu.fayder.restcountries.v1.domain.Country;
import org.junit.Assert;
import org.junit.Test;

import fayder.restcountries.v1.rest.CountryService;
import eu.fayder.restcountries.v1.rest.CountryService;

public class CountryServiceTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package fayder.restcountries.v2;
package eu.fayder.restcountries.v2;

import fayder.restcountries.v2.domain.*;
import fayder.restcountries.v2.rest.CountryService;
import eu.fayder.restcountries.v2.domain.*;
import eu.fayder.restcountries.v2.rest.CountryService;
import org.junit.Assert;
import org.junit.Test;

Expand Down

0 comments on commit ce2245a

Please sign in to comment.