public static ResteasyDeployment start(String bindPath, SecurityDomain domain) throws Exception { ResteasyDeployment deployment = new ResteasyDeploymentImpl(); deployment.setSecurityEnabled(true); return start(bindPath, domain, deployment); }
public static ResteasyDeployment start(String bindPath, SecurityDomain domain) throws Exception { ResteasyDeployment deployment = new ResteasyDeploymentImpl(); deployment.setSecurityEnabled(true); return start(bindPath, domain, deployment); }
public static ResteasyDeployment start(String bindPath, SecurityDomain domain, Hashtable<String,String> initParams, Hashtable<String,String> contextParams) throws Exception { ResteasyDeployment deployment = new ResteasyDeploymentImpl(); deployment.setSecurityEnabled(true); return start(bindPath, domain, deployment, initParams, contextParams); }
/** * Creates a web deployment for the jaxrs Application. Will ignore any @ApplicationPath annotation. * * @param application * @param mapping resteasy.servlet.mapping.prefix * @return */ public DeploymentInfo undertowDeployment(Class<? extends Application> application, String mapping) { ResteasyDeployment deployment = new ResteasyDeploymentImpl(); deployment.setApplicationClass(application.getName()); DeploymentInfo di = undertowDeployment(deployment, mapping); di.setClassLoader(application.getClassLoader()); return di; }
public UndertowJaxrsServer deployToServer(UndertowJaxrsServer server, Class<? extends Application> application, String contextPath) { ResteasyDeployment deployment = new ResteasyDeploymentImpl(); deployment.setApplicationClass(application.getName()); DeploymentInfo di = server.undertowDeployment(deployment); di.setClassLoader(application.getClassLoader()); di.setContextPath(contextPath); di.setDeploymentName("Resteasy" + contextPath); return server.deploy(di); } }
/** * Creates a web deployment for the jaxrs Application. Will ignore any @ApplicationPath annotation. * * @param application * @param contextPath * @return */ public UndertowJaxrsServer deploy(Application application, String contextPath) { if (contextPath == null) contextPath = "/"; if (!contextPath.startsWith("/")) contextPath = "/" + contextPath; ResteasyDeployment deployment = new ResteasyDeploymentImpl(); deployment.setApplication(application); DeploymentInfo di = undertowDeployment(deployment); di.setClassLoader(application.getClass().getClassLoader()); di.setContextPath(contextPath); di.setDeploymentName("Resteasy" + contextPath); return deploy(di); }
/** * Creates a web deployment for the jaxrs Application. Will ignore any @ApplicationPath annotation. * * @param application * @param contextPath * @return */ public UndertowJaxrsServer deploy(Class<? extends Application> application, String contextPath) { if (contextPath == null) contextPath = "/"; if (!contextPath.startsWith("/")) contextPath = "/" + contextPath; ResteasyDeployment deployment = new ResteasyDeploymentImpl(); deployment.setApplicationClass(application.getName()); DeploymentInfo di = undertowDeployment(deployment); di.setClassLoader(application.getClassLoader()); di.setContextPath(contextPath); di.setDeploymentName("Resteasy" + contextPath); return deploy(di); }