Skip to content

Commit

Permalink
move stuff around so customer used stuff is in the *.api.* packages f…
Browse files Browse the repository at this point in the history
…or clarity making it easier to understand the components
  • Loading branch information
deanhiller committed Mar 30, 2019
1 parent ed665fa commit f0084fb
Show file tree
Hide file tree
Showing 266 changed files with 723 additions and 731 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import org.webpieces.plugins.backend.login.BackendLoginRouteId;
import org.webpieces.plugins.backend.menu.MenuCreator;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.actions.Redirect;
import org.webpieces.router.api.actions.Render;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.controller.actions.Redirect;
import org.webpieces.router.api.controller.actions.Render;

@Singleton
public class BackendController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import java.util.List;

import org.webpieces.plugins.backend.login.BackendLoginRoutes;
import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;

import com.google.common.collect.Lists;
import com.google.inject.Module;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.plugins.backend;

import org.webpieces.router.api.routing.ScopedRoutes;
import org.webpieces.router.api.routes.ScopedRoutes;

public abstract class BackendRoutes extends ScopedRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import org.webpieces.ctx.api.Current;
import org.webpieces.plugins.backend.menu.MenuCreator;
import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.routes.RouteId;
import org.webpieces.webserver.api.login.AbstractLoginController;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.plugins.backend.login;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public enum BackendLoginRouteId implements RouteId{
BACKEND_LOGIN, POST_BACKEND_LOGIN, BACKEND_LOGOUT, BACKEND_LOGGED_IN_HOME, LOGGED_OUT_LANDING
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.webpieces.plugins.backend.login;

import org.webpieces.ctx.api.HttpMethod;
import org.webpieces.router.api.routing.Port;
import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.impl.model.bldr.RouteBuilder;
import org.webpieces.router.impl.model.bldr.ScopedRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routebldr.ScopedRouteBuilder;
import org.webpieces.router.api.routes.Port;
import org.webpieces.router.api.routes.RouteId;
import org.webpieces.webserver.api.login.AbstractLoginRoutes;

public class BackendLoginRoutes extends AbstractLoginRoutes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.webpieces.plugins.backend.spi.BackendGuiDescriptor;
import org.webpieces.plugins.backend.spi.MenuCategory;
import org.webpieces.plugins.backend.spi.PageDescriptor;
import org.webpieces.router.api.routing.ReverseRouteLookup;
import org.webpieces.router.api.plugins.ReverseRouteLookup;
import org.webpieces.router.impl.RoutingHolder;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.plugins.backend.spi;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public class PageDescriptor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import org.webpieces.plugins.fortesting.EmptyModule;
import org.webpieces.plugins.fortesting.FillerRoutes;
import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.routing.WebAppMeta;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import org.webpieces.router.api.routes.WebAppMeta;

import com.google.common.collect.Lists;
import com.google.inject.Module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import javax.inject.Singleton;

import org.webpieces.plugins.backend.menu.MenuCreator;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.actions.Render;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.controller.actions.Render;

@Singleton
public class DocumentationController {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.plugins.documentation;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public enum DocumentationRouteId implements RouteId {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.webpieces.plugins.documentation;

import static org.webpieces.router.api.routing.Port.BOTH;
import static org.webpieces.router.api.routes.Port.BOTH;

import org.webpieces.ctx.api.HttpMethod;
import org.webpieces.router.api.routing.ScopedRoutes;
import org.webpieces.router.impl.model.bldr.RouteBuilder;
import org.webpieces.router.impl.model.bldr.ScopedRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routebldr.ScopedRouteBuilder;
import org.webpieces.router.api.routes.ScopedRoutes;

public class DocumentationRoutes extends ScopedRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import java.util.List;

import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;

import com.google.common.collect.Lists;
import com.google.inject.Module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import javax.inject.Singleton;

import org.webpieces.plugins.backend.menu.MenuCreator;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.actions.Render;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.controller.actions.Render;

@Singleton
public class PluginController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import org.webpieces.plugins.backend.BackendPlugin;
import org.webpieces.plugins.fortesting.EmptyModule;
import org.webpieces.plugins.fortesting.FillerRoutes;
import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.routing.WebAppMeta;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import org.webpieces.router.api.routes.WebAppMeta;

import com.google.common.collect.Lists;
import com.google.inject.Module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import org.webpieces.ctx.api.Current;
import org.webpieces.ctx.api.RouterRequest;
import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;

@Singleton
public class H2DbController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import java.util.List;

import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;

import com.google.common.collect.Lists;
import com.google.inject.Module;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.plugins.hsqldb;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public enum H2DbRouteId implements RouteId {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.webpieces.plugins.hsqldb;

import static org.webpieces.router.api.routing.Port.BOTH;
import static org.webpieces.router.api.routes.Port.BOTH;

import org.webpieces.ctx.api.HttpMethod;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.impl.model.bldr.DomainRouteBuilder;
import org.webpieces.router.impl.model.bldr.RouteBuilder;
import org.webpieces.router.api.routebldr.DomainRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routes.Routes;

public class H2DbRoutes implements Routes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import javax.persistence.metamodel.SingularAttribute;

import org.hibernate.metamodel.internal.EntityTypeImpl;
import org.webpieces.router.api.EntityLookup;
import org.webpieces.router.api.ObjectStringConverter;
import org.webpieces.router.api.extensions.EntityLookup;
import org.webpieces.router.api.extensions.ObjectStringConverter;
import org.webpieces.router.impl.params.Meta;
import org.webpieces.router.impl.params.ObjectTranslator;
import org.webpieces.router.impl.params.ParamMeta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import javax.persistence.Persistence;

import org.hibernate.cfg.AvailableSettings;
import org.webpieces.router.api.EntityLookup;
import org.webpieces.router.api.extensions.EntityLookup;
import org.webpieces.util.logging.Logger;
import org.webpieces.util.logging.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import java.util.List;

import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import org.webpieces.util.logging.Logger;
import org.webpieces.util.logging.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.webpieces.plugins.hibernate;

import org.webpieces.router.api.routing.PortType;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.impl.model.bldr.DomainRouteBuilder;
import org.webpieces.router.impl.model.bldr.RouteBuilder;
import org.webpieces.router.api.routebldr.DomainRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routes.FilterPortType;
import org.webpieces.router.api.routes.Routes;

public class HibernateRoutes implements Routes {

Expand All @@ -14,7 +14,7 @@ public void configure(DomainRouteBuilder domainRouteBldr) {
//as if the database goes down, you will end up with error to error to webpieces fail-safe 500 page which
//does not look like your website
//Also, we don't wrap NotFound but you could do that as well
bldr.addFilter(".*", TransactionFilter.class, null, PortType.ALL_FILTER);
bldr.addFilter(".*", TransactionFilter.class, null, FilterPortType.ALL_FILTER);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.dto.MethodMeta;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.exceptions.HttpException;
import org.webpieces.router.api.exceptions.NotFoundException;
import org.webpieces.router.api.routing.RouteFilter;
import org.webpieces.router.api.routes.RouteFilter;
import org.webpieces.router.impl.dto.MethodMeta;
import org.webpieces.util.filters.Service;
import org.webpieces.util.logging.Logger;
import org.webpieces.util.logging.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
import org.webpieces.plugins.sslcert.acme.AcmeInfo;
import org.webpieces.plugins.sslcert.acme.ProxyAuthorization;
import org.webpieces.plugins.sslcert.acme.ProxyOrder;
import org.webpieces.router.api.SimpleStorage;
import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.actions.Redirect;
import org.webpieces.router.api.actions.Render;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.controller.actions.Redirect;
import org.webpieces.router.api.controller.actions.Render;
import org.webpieces.router.api.exceptions.NotFoundException;
import org.webpieces.router.api.extensions.SimpleStorage;

import com.webpieces.hpack.api.dto.Http2Response;
import com.webpieces.http2parser.api.dto.lib.Http2Header;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import java.util.List;

import org.webpieces.router.api.routing.BackendPlugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.plugins.BackendPlugin;
import org.webpieces.router.api.routes.Routes;

import com.google.common.collect.Lists;
import com.google.inject.Module;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.plugins.sslcert;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public enum InstallSslCertRouteId implements RouteId {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.webpieces.plugins.sslcert;

import static org.webpieces.router.api.routing.Port.BOTH;
import static org.webpieces.router.api.routing.Port.HTTPS;
import static org.webpieces.router.api.routes.Port.BOTH;
import static org.webpieces.router.api.routes.Port.HTTPS;

import org.webpieces.ctx.api.HttpMethod;
import org.webpieces.plugins.backend.BackendRoutes;
import org.webpieces.router.impl.model.bldr.RouteBuilder;
import org.webpieces.router.impl.model.bldr.ScopedRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routebldr.ScopedRouteBuilder;

public class InstallSslCertRoutes extends BackendRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.Map;
import java.util.concurrent.CompletableFuture;

import org.webpieces.router.api.SimpleStorage;
import org.webpieces.router.api.extensions.SimpleStorage;

public class MockSimpleStorage implements SimpleStorage {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import org.webpieces.plugins.backend.BackendPlugin;
import org.webpieces.plugins.fortesting.EmptyModule;
import org.webpieces.plugins.fortesting.FillerRoutes;
import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.routing.WebAppMeta;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import org.webpieces.router.api.routes.WebAppMeta;

import com.google.common.collect.Lists;
import com.google.inject.Module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.webpieces.plugins.sslcert.acme.AcmeInfo;
import org.webpieces.plugins.sslcert.acme.ProxyAuthorization;
import org.webpieces.plugins.sslcert.acme.ProxyOrder;
import org.webpieces.router.api.SimpleStorage;
import org.webpieces.router.api.extensions.SimpleStorage;
import org.webpieces.util.file.VirtualFileClasspath;
import org.webpieces.webserver.test.AbstractWebpiecesTest;
import org.webpieces.webserver.test.ResponseExtract;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.webpieces.plugins.backend.login.BackendLogin;
import org.webpieces.plugins.fortesting.TestConfig;
import org.webpieces.plugins.fortesting.WebserverForTest;
import org.webpieces.router.api.SimpleStorage;
import org.webpieces.router.api.extensions.SimpleStorage;
import org.webpieces.util.file.VirtualFileClasspath;
import org.webpieces.webserver.test.AbstractWebpiecesTest;
import org.webpieces.webserver.test.ResponseExtract;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.webpieces.httpparser.api.dto.KnownStatusCode;
import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.RenderContent;
import org.webpieces.router.api.dto.MethodMeta;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.RenderContent;
import org.webpieces.router.api.exceptions.ClientDataError;
import org.webpieces.router.api.exceptions.NotFoundException;
import org.webpieces.router.api.routing.RouteFilter;
import org.webpieces.router.api.routes.RouteFilter;
import org.webpieces.router.impl.compression.MimeTypes.MimeTypeResult;
import org.webpieces.router.impl.dto.MethodMeta;
import org.webpieces.util.filters.Service;
import org.webpieces.util.logging.Logger;
import org.webpieces.util.logging.LoggerFactory;
Expand Down
Loading

0 comments on commit f0084fb

Please sign in to comment.