Skip to content

Commit

Permalink
Removed the server package
Browse files Browse the repository at this point in the history
The "harfang.server" package has been replaced by the top-level "harfang"
package. This has been done to shorten some names as the "server"
package was redundant.
  • Loading branch information
njuneau committed Apr 9, 2016
1 parent 9c860f0 commit d1515a7
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 39 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -10,6 +10,7 @@
* URLMapping now takes the RequestInfo in its resolve method instead of the URL alone
* URLMapping's "extractParameters" has been removed in favor of resolve's "ResolutionResult" object
* ERegURLMapping's constructor no longer takes an EReg as an argument, but a pattern and its options
* Package harfang.server.* has been moved to harfang.*

0.4.0 (2013-08-07)
==================
Expand Down
Expand Up @@ -17,16 +17,16 @@
// You should have received a copy of the GNU General Public License
// along with Harfang. If not, see <http://www.gnu.org/licenses/>.

package harfang.server;
package harfang;

import harfang.controller.Controller;
import harfang.configuration.ServerConfiguration;
import harfang.controller.Controller;
import harfang.event.ServerEventListener;
import harfang.exception.HTTPException;
import harfang.exception.NotFoundException;
import harfang.module.Module;
import harfang.server.event.ServerEventListener;
import harfang.server.request.RequestInfo;
import harfang.server.response.HTTPStatus;
import harfang.request.RequestInfo;
import harfang.response.HTTPStatus;
import harfang.url.ResolutionResult;
import harfang.url.URLMapping;

Expand Down
Expand Up @@ -17,7 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with Harfang. If not, see <http://www.gnu.org/licenses/>.

package harfang.server;
package harfang;

#if php
import php.Web;
Expand All @@ -31,11 +31,11 @@ import haxe.macro.Expr;
import haxe.macro.Context;

import harfang.configuration.ServerConfiguration;
import harfang.event.ServerEventListener;
import harfang.exception.Exception;
import harfang.exception.HTTPException;
import harfang.exception.WrappedException;
import harfang.server.event.ServerEventListener;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;

/**
* Program entry point. This is where the frameworks gets initialized.
Expand Down
Expand Up @@ -19,11 +19,11 @@

package harfang.configuration;

import harfang.url.URLMapping;
import harfang.event.ServerEventListener;
import harfang.module.Module;
import harfang.exception.Exception;
import harfang.exception.HTTPException;
import harfang.module.Module;
import harfang.server.event.ServerEventListener;
import harfang.url.URLMapping;

/**
* Provides a default implementation for the ServerConfiguration interface,
Expand Down
3 changes: 1 addition & 2 deletions src/main/haxe/harfang/configuration/ServerConfiguration.hx
Expand Up @@ -19,12 +19,11 @@

package harfang.configuration;

import harfang.event.ServerEventListener;
import harfang.module.Module;
import harfang.url.URLMapping;
import harfang.exception.Exception;
import harfang.exception.HTTPException;
import harfang.server.event.ServerEventListener;


/**
* The configuration specifies pretty much everything that the framework needs
Expand Down
2 changes: 1 addition & 1 deletion src/main/haxe/harfang/controller/AbstractController.hx
Expand Up @@ -20,7 +20,7 @@
package harfang.controller;

import harfang.module.Module;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;
import harfang.url.URLMapping;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/haxe/harfang/controller/Controller.hx
Expand Up @@ -20,7 +20,7 @@
package harfang.controller;

import harfang.module.Module;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;
import harfang.url.URLMapping;

/**
Expand Down
Expand Up @@ -17,13 +17,13 @@
// You should have received a copy of the GNU General Public License
// along with Harfang. If not, see <http://www.gnu.org/licenses/>.

package harfang.server.event;
package harfang.event;

import harfang.configuration.ServerConfiguration;
import harfang.controller.Controller;
import harfang.exception.HTTPException;
import harfang.exception.Exception;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;
import harfang.url.URLMapping;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/haxe/harfang/exception/NotFoundException.hx
Expand Up @@ -20,7 +20,7 @@
package harfang.exception;

import harfang.exception.HTTPException;
import harfang.server.response.HTTPStatus;
import harfang.response.HTTPStatus;

/**
* The 404 exception is thrown whenever something is not found, server-side.
Expand Down
Expand Up @@ -17,7 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with Harfang. If not, see <http://www.gnu.org/licenses/>.

package harfang.server.request;
package harfang.request;

import StringTools;

Expand Down
Expand Up @@ -17,7 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with Harfang. If not, see <http://www.gnu.org/licenses/>.

package harfang.server.response;
package harfang.response;

/**
* This is a list of various HTTP status codes. This is based on a list found
Expand Down
2 changes: 1 addition & 1 deletion src/main/haxe/harfang/url/ERegURLMapping.hx
Expand Up @@ -20,7 +20,7 @@
package harfang.url;

import harfang.controller.Controller;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;

/**
* This is the framework's default request mapping implementation. It resolves a
Expand Down
2 changes: 1 addition & 1 deletion src/main/haxe/harfang/url/URLMapping.hx
Expand Up @@ -20,7 +20,7 @@
package harfang.url;

import harfang.controller.Controller;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;

/**
* A URL mapping consists of a binding between a controller and a request.
Expand Down
4 changes: 2 additions & 2 deletions src/test/haxe/requestdispatcher/RequestDispatcherTest.hx
Expand Up @@ -24,8 +24,8 @@ import unit2.TestCase;
import harfang.exception.Exception;
import harfang.exception.NotFoundException;

import harfang.server.RequestDispatcher;
import harfang.server.request.RequestInfo;
import harfang.RequestDispatcher;
import harfang.request.RequestInfo;

import requestdispatcher.mock.MockRequestDispatcherUserConfiguration;
import requestdispatcher.mock.MockRequestDispatcherFilterConfiguration;
Expand Down
2 changes: 1 addition & 1 deletion src/test/haxe/requestdispatcher/RequestInfoTest.hx
Expand Up @@ -21,7 +21,7 @@ package requestdispatcher;

import unit2.TestCase;

import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;

/**
* Tests the request info model class
Expand Down
Expand Up @@ -21,7 +21,7 @@ package requestdispatcher.mock;

import harfang.controller.AbstractController;
import harfang.module.Module;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;
import harfang.url.URLMapping;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/test/haxe/requestdispatcher/mock/MockURLMapping.hx
Expand Up @@ -20,7 +20,7 @@
package requestdispatcher.mock;

import harfang.controller.Controller;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;
import harfang.url.ResolutionResult;
import harfang.url.URLMapping;

Expand Down
4 changes: 2 additions & 2 deletions src/test/haxe/serverconfiguration/ServerConfigurationTest.hx
Expand Up @@ -21,8 +21,8 @@ package serverconfiguration;

import unit2.TestCase;

import harfang.server.ServerMain;
import harfang.server.request.RequestInfo;
import harfang.ServerMain;
import harfang.request.RequestInfo;

import serverconfiguration.mock.MockServerConfiguration;
import serverconfiguration.mock.MockServerConfigurationController;
Expand Down
6 changes: 3 additions & 3 deletions src/test/haxe/servereventlistener/ServerEventListenerTest.hx
Expand Up @@ -27,10 +27,10 @@ import harfang.exception.Exception;
import harfang.exception.HTTPException;
import harfang.exception.WrappedException;

import harfang.server.ServerMain;
import harfang.server.request.RequestInfo;
import harfang.ServerMain;
import harfang.RequestDispatcher;
import harfang.request.RequestInfo;

import harfang.server.RequestDispatcher;

import servereventlistener.mock.MockServerEventListenerUserConfiguration;
import servereventlistener.mock.MockServerEventListenerModule;
Expand Down
Expand Up @@ -24,7 +24,7 @@ import harfang.exception.Exception;
import harfang.exception.HTTPException;
import harfang.exception.WrappedException;
import harfang.module.Module;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;
import harfang.url.URLMapping;

/**
Expand Down
Expand Up @@ -25,8 +25,8 @@ import harfang.configuration.ServerConfiguration;
import harfang.exception.Exception;
import harfang.exception.HTTPException;

import harfang.server.event.ServerEventListener;
import harfang.server.request.RequestInfo;
import harfang.event.ServerEventListener;
import harfang.request.RequestInfo;

import harfang.url.URLMapping;

Expand Down
2 changes: 1 addition & 1 deletion src/test/haxe/urlmappingfactory/URLMappingFactoryTest.hx
Expand Up @@ -21,9 +21,9 @@ package urlmappingfactory;

import unit2.TestCase;

import harfang.request.RequestInfo;
import harfang.url.ERegURLMappingFactory;
import harfang.url.URLMappingFactory;
import harfang.server.request.RequestInfo;
import harfang.url.ERegURLMapping;

import urlmappingfactory.mock.MockMacroModule;
Expand Down
Expand Up @@ -20,7 +20,7 @@
package urlmappingfactory.mock;

import harfang.controller.Controller;
import harfang.server.request.RequestInfo;
import harfang.request.RequestInfo;
import harfang.url.ResolutionResult;
import harfang.url.URLMapping;

Expand Down
2 changes: 1 addition & 1 deletion test-neko.hxml
Expand Up @@ -2,5 +2,5 @@
-neko out/test.n
-cp src/main/haxe
-cp src/test/haxe
--macro harfang.server.ServerMain.setServerConfigurationClass('PlaceholderConfiguration')
--macro harfang.ServerMain.setServerConfigurationClass('PlaceholderConfiguration')
-main TestMain
2 changes: 1 addition & 1 deletion test-php.hxml
Expand Up @@ -2,5 +2,5 @@
-php out/phptest
-cp src/main/haxe
-cp src/test/haxe
--macro harfang.server.ServerMain.setServerConfigurationClass('PlaceholderConfiguration')
--macro harfang.ServerMain.setServerConfigurationClass('PlaceholderConfiguration')
-main TestMain

0 comments on commit d1515a7

Please sign in to comment.