repo_name
stringlengths
7
104
file_path
stringlengths
13
198
context
stringlengths
67
7.15k
import_statement
stringlengths
16
4.43k
code
stringlengths
40
6.98k
prompt
stringlengths
227
8.27k
next_line
stringlengths
8
795
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/util/ExecutedTestNamesSolver.java
// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/exception/ExecutedTestNamesSolverException.java // public class ExecutedTestNamesSolverException extends Exception { // // private static final long serialVersionUID = 1L; // // public ExecutedTestNamesSolverException() { // supe...
import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.LinkedList; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import javax.xml.parsers.DocumentBuilder; impo...
package org.jenkins.tools.test.util; public class ExecutedTestNamesSolver { private static final String WARNING_MSG = "[WARNING] Unable to retrieve info from: %s"; private static final String TEST_PLACEHOLDER = "TEST-%s.xml"; /* Element names for failure and error as declared at https:/...
// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/exception/ExecutedTestNamesSolverException.java // public class ExecutedTestNamesSolverException extends Exception { // // private static final long serialVersionUID = 1L; // // public ExecutedTestNamesSolverException() { // supe...
public ExecutedTestNamesDetails solve(Set<String> types, Set<String> executedTests, File baseDirectory) throws ExecutedTestNamesSolverException {
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/DeclarativePipelineHook.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import org.jenkins.tools.test.model.PomData;
package org.jenkins.tools.test.hook; /** * Workaround for the Pipeline: Declarative plugins since they are stored in a central repository. */ public class DeclarativePipelineHook extends AbstractMultiParentHook { private static final Logger LOGGER = Logger.getLogger(DeclarativePipelineHook.class.getName()); ...
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
PomData data = (PomData) moreInfo.get("pomData");
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/BlueOceanHook.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import org.jenkins.tools.test.model.PomData;
package org.jenkins.tools.test.hook; /** * Workaround for the Blue Ocean plugins since they are * stored in a central repository. */ public class BlueOceanHook extends AbstractMultiParentHook { private static final Logger LOGGER = Logger.getLogger(BlueOceanHook.class.getName()); @Override protected S...
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
PomData data = (PomData) moreInfo.get("pomData");
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/model/PluginRemoting.java
// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/exception/PluginSourcesUnavailableException.java // public class PluginSourcesUnavailableException extends Exception { // // public PluginSourcesUnavailableException(String message, Throwable cause){ // super(message, cause); // } // }
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.nio.charset.Charset; import java.util.logging.Level; import java.util.logging.Logger; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import javax.anno...
/* * The MIT License * * Copyright (c) 2004-2018, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy...
// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/exception/PluginSourcesUnavailableException.java // public class PluginSourcesUnavailableException extends Exception { // // public PluginSourcesUnavailableException(String message, Throwable cause){ // super(message, cause); // } // } // Path: ...
private String retrievePomContent() throws PluginSourcesUnavailableException{
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/JacocoHook.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
import org.jenkins.tools.test.model.PomData; import org.jenkins.tools.test.model.hook.PluginCompatTesterHookBeforeExecution; import java.util.List; import java.util.Map; import java.util.stream.IntStream;
package org.jenkins.tools.test.hook; /** * Workaround for JaCoCo plugin since it needs execute the jacoco:prepare-agent goal before execution. */ public class JacocoHook extends PluginCompatTesterHookBeforeExecution { @Override public boolean check(Map<String, Object> info) {
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
PomData data = (PomData) info.get("pomData");
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/test/java/org/jenkins/tools/test/VersionComparatorTest.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/comparators/VersionComparator.java // public class VersionComparator implements Comparator<String>, Serializable { // @Override // public int compare(String o1, String o2) { // // String[] splitO1Version = o1.split("\\.|-")...
import org.jenkins.tools.test.model.comparators.VersionComparator; import org.junit.Test; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import com.google.common.collect.ImmutableMap;
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy...
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/comparators/VersionComparator.java // public class VersionComparator implements Comparator<String>, Serializable { // @Override // public int compare(String o1, String o2) { // // String[] splitO1Version = o1.split("\\.|-")...
assertThat(new VersionComparator().compare(v1, v2), is(equalTo(compResult)));
jenkinsci/plugin-compat-tester
plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/MavenCoordinates.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/comparators/VersionComparator.java // public class VersionComparator implements Comparator<String>, Serializable { // @Override // public int compare(String o1, String o2) { // // String[] splitO1Version = o1.split("\\.|-")...
import javax.annotation.Nonnull; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.jenkins.tools.test.model.comparators.VersionComparator;
} @Override public String toString(){ return "MavenCoordinates[groupId="+groupId+", artifactId="+artifactId+", version="+version+"]"; } public String toGAV(){ return groupId+":"+artifactId+":"+version; } public static MavenCoordinates fromGAV(String gav){ String[] ...
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/comparators/VersionComparator.java // public class VersionComparator implements Comparator<String>, Serializable { // @Override // public int compare(String o1, String o2) { // // String[] splitO1Version = o1.split("\\.|-")...
return new VersionComparator().compare(this.version, version);
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/ConfigurationAsCodeHook.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
import hudson.model.UpdateSite; import java.util.Map; import org.jenkins.tools.test.model.PomData;
package org.jenkins.tools.test.hook; public class ConfigurationAsCodeHook extends AbstractMultiParentHook { @Override protected String getParentFolder() { return "configuration-as-code-plugin"; } @Override protected String getParentProjectName() { return "configuration-as-code";...
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
PomData data = (PomData) moreInfo.get("pomData");
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/exception/PomExecutionException.java
// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/util/ExecutedTestNamesDetails.java // public class ExecutedTestNamesDetails { // // private static final String FAILED = "FAILED"; // // private static final String EXECUTED = "EXECUTED"; // // private Map<String, Set<String>...
import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Set; import java.util.TreeSet; import org.jenkins.tools.test.util.ExecutedTestNamesDetails; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Wr...
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy...
// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/util/ExecutedTestNamesDetails.java // public class ExecutedTestNamesDetails { // // private static final String FAILED = "FAILED"; // // private static final String EXECUTED = "EXECUTED"; // // private Map<String, Set<String>...
private final ExecutedTestNamesDetails testDetails;
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/test/java/org/jenkins/tools/test/hook/WarningsNGExecutionHookTest.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/MavenCoordinates.java // public class MavenCoordinates implements Comparable<MavenCoordinates> { // public final String groupId; // public final String artifactId; // public final String version; // // No classifier/type for...
import com.google.common.collect.Lists; import org.jenkins.tools.test.model.MavenCoordinates; import org.jenkins.tools.test.model.PomData; import org.junit.Test; import java.util.HashMap; import java.util.List; import java.util.Map; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.as...
package org.jenkins.tools.test.hook; public class WarningsNGExecutionHookTest { @Test public void testCheckMethod() { final WarningsNGExecutionHook hook = new WarningsNGExecutionHook();
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/MavenCoordinates.java // public class MavenCoordinates implements Comparable<MavenCoordinates> { // public final String groupId; // public final String artifactId; // public final String version; // // No classifier/type for...
final MavenCoordinates parent = new MavenCoordinates("org.jenkins-ci.plugins", "plugin", "3.57");
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/test/java/org/jenkins/tools/test/hook/WarningsNGExecutionHookTest.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/MavenCoordinates.java // public class MavenCoordinates implements Comparable<MavenCoordinates> { // public final String groupId; // public final String artifactId; // public final String version; // // No classifier/type for...
import com.google.common.collect.Lists; import org.jenkins.tools.test.model.MavenCoordinates; import org.jenkins.tools.test.model.PomData; import org.junit.Test; import java.util.HashMap; import java.util.List; import java.util.Map; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.as...
package org.jenkins.tools.test.hook; public class WarningsNGExecutionHookTest { @Test public void testCheckMethod() { final WarningsNGExecutionHook hook = new WarningsNGExecutionHook(); final MavenCoordinates parent = new MavenCoordinates("org.jenkins-ci.plugins", "plugin", "3.57");
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/MavenCoordinates.java // public class MavenCoordinates implements Comparable<MavenCoordinates> { // public final String groupId; // public final String artifactId; // public final String version; // // No classifier/type for...
PomData pomData = new PomData("warnings-ng", "hpi", "it-does-not-matter", "whatever", parent, "org.jenkins-ci.plugins");
jenkinsci/plugin-compat-tester
plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/WarningsNGExecutionHook.java
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
import org.jenkins.tools.test.model.PomData; import java.util.Map;
package org.jenkins.tools.test.hook; /** * Workaround for Warnings NG plugin since it needs execute integration tests. */ public class WarningsNGExecutionHook extends PluginWithFailsafeIntegrationTestsHook { @Override public boolean check(Map<String, Object> info) {
// Path: plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java // public class PomData { // public final String artifactId; // public final String groupId; // // @Nonnull // private final String packaging; // // @CheckForNull // public final MavenCoordinates paren...
PomData data = (PomData) info.get("pomData");
advantageous/reakt
src/main/java/io/advantageous/reakt/CallbackHandler.java
// Path: src/main/java/io/advantageous/reakt/exception/RejectedPromiseException.java // public class RejectedPromiseException extends RuntimeException { // // public RejectedPromiseException(String s) { // super(s); // } // // public RejectedPromiseException(String message, Throwable cause) { // ...
import static io.advantageous.reakt.Result.doneResult; import io.advantageous.reakt.exception.RejectedPromiseException; import io.advantageous.reakt.impl.ResultImpl; import java.util.function.Consumer;
/* * * Copyright (c) 2016. Rick Hightower, Geoff Chandler * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
// Path: src/main/java/io/advantageous/reakt/exception/RejectedPromiseException.java // public class RejectedPromiseException extends RuntimeException { // // public RejectedPromiseException(String s) { // super(s); // } // // public RejectedPromiseException(String message, Throwable cause) { // ...
onResult(new ResultImpl<>(error));
advantageous/reakt
src/main/java/io/advantageous/reakt/CallbackHandler.java
// Path: src/main/java/io/advantageous/reakt/exception/RejectedPromiseException.java // public class RejectedPromiseException extends RuntimeException { // // public RejectedPromiseException(String s) { // super(s); // } // // public RejectedPromiseException(String message, Throwable cause) { // ...
import static io.advantageous.reakt.Result.doneResult; import io.advantageous.reakt.exception.RejectedPromiseException; import io.advantageous.reakt.impl.ResultImpl; import java.util.function.Consumer;
/* * * Copyright (c) 2016. Rick Hightower, Geoff Chandler * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
// Path: src/main/java/io/advantageous/reakt/exception/RejectedPromiseException.java // public class RejectedPromiseException extends RuntimeException { // // public RejectedPromiseException(String s) { // super(s); // } // // public RejectedPromiseException(String message, Throwable cause) { // ...
reject(new RejectedPromiseException(errorMessage));
advantageous/reakt
src/main/java/io/advantageous/reakt/CallbackHandler.java
// Path: src/main/java/io/advantageous/reakt/exception/RejectedPromiseException.java // public class RejectedPromiseException extends RuntimeException { // // public RejectedPromiseException(String s) { // super(s); // } // // public RejectedPromiseException(String message, Throwable cause) { // ...
import static io.advantageous.reakt.Result.doneResult; import io.advantageous.reakt.exception.RejectedPromiseException; import io.advantageous.reakt.impl.ResultImpl; import java.util.function.Consumer;
/* * * Copyright (c) 2016. Rick Hightower, Geoff Chandler * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
// Path: src/main/java/io/advantageous/reakt/exception/RejectedPromiseException.java // public class RejectedPromiseException extends RuntimeException { // // public RejectedPromiseException(String s) { // super(s); // } // // public RejectedPromiseException(String message, Throwable cause) { // ...
onResult((Result<T>) doneResult());
advantageous/reakt
src/main/java/io/advantageous/reakt/promise/Promises.java
// Path: src/main/java/io/advantageous/reakt/Callback.java // public interface Callback<T> { // // /** // * (Service view) // * This allows services to send back a failed result easily to the client/handler. // * <p> // * This is a helper methods for producers (services that produce results) to...
import io.advantageous.reakt.Callback; import io.advantageous.reakt.promise.impl.*; import java.time.Duration; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import java.util.function.Consumer;
static <K, V> Promise<Map<K, V>> blockingPromiseMap(final Class<K> keyType, final Class<V> valueType) { return new BlockingPromise<>(); } /** * Generic set promise. * Added to make static imports possible. * Create a blocking pr...
// Path: src/main/java/io/advantageous/reakt/Callback.java // public interface Callback<T> { // // /** // * (Service view) // * This allows services to send back a failed result easily to the client/handler. // * <p> // * This is a helper methods for producers (services that produce results) to...
static <T> Promise<T> invokablePromise(Consumer<Callback<T>> callbackConsumer) {
advantageous/reakt
src/main/java/io/advantageous/reakt/Stream.java
// Path: src/main/java/io/advantageous/reakt/exception/RejectedStreamException.java // public class RejectedStreamException extends RuntimeException { // // public RejectedStreamException() { // super(); // } // // public RejectedStreamException(String message) { // super(message); // ...
import io.advantageous.reakt.exception.RejectedStreamException; import io.advantageous.reakt.impl.StreamResultImpl; import java.util.function.Consumer;
/* * * Copyright (c) 2016. Rick Hightower, Geoff Chandler * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
// Path: src/main/java/io/advantageous/reakt/exception/RejectedStreamException.java // public class RejectedStreamException extends RuntimeException { // // public RejectedStreamException() { // super(); // } // // public RejectedStreamException(String message) { // super(message); // ...
this.onNext(new StreamResultImpl<>(result, true, Expected.empty(), Expected.empty()));
advantageous/reakt
src/main/java/io/advantageous/reakt/Stream.java
// Path: src/main/java/io/advantageous/reakt/exception/RejectedStreamException.java // public class RejectedStreamException extends RuntimeException { // // public RejectedStreamException() { // super(); // } // // public RejectedStreamException(String message) { // super(message); // ...
import io.advantageous.reakt.exception.RejectedStreamException; import io.advantageous.reakt.impl.StreamResultImpl; import java.util.function.Consumer;
* This is a helper methods for producers (services that produce results) to send a failed result. * * @param errorMessage error message */ default void fail(final String errorMessage) { this.onNext(new StreamResultImpl<>( new IllegalStateException(errorMessage), true, Exp...
// Path: src/main/java/io/advantageous/reakt/exception/RejectedStreamException.java // public class RejectedStreamException extends RuntimeException { // // public RejectedStreamException() { // super(); // } // // public RejectedStreamException(String message) { // super(message); // ...
new RejectedStreamException(errorMessage), true, Expected.empty(), Expected.empty()));
bitstorm/Wicket-rest-annotations
restannotations/src/main/java/org/wicketstuff/rest/annotations/MethodMapping.java
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/RestMimeTypes.java // public class RestMimeTypes { // public static final String APPLICATION_RSS_XML = "application/rss+xml"; // // public static final String TEXT_CSS = "text/css"; // // public static final String TEXT_CSV = "text/csv"; /...
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.wicketstuff.rest.contenthandling.RestMimeTypes; import org.wicketstuff.rest.utils.http.HttpMethod;
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/RestMimeTypes.java // public class RestMimeTypes { // public static final String APPLICATION_RSS_XML = "application/rss+xml"; // // public static final String TEXT_CSS = "text/css"; // // public static final String TEXT_CSV = "text/csv"; /...
HttpMethod httpMethod() default HttpMethod.GET;
bitstorm/Wicket-rest-annotations
restannotations/src/main/java/org/wicketstuff/rest/annotations/MethodMapping.java
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/RestMimeTypes.java // public class RestMimeTypes { // public static final String APPLICATION_RSS_XML = "application/rss+xml"; // // public static final String TEXT_CSS = "text/css"; // // public static final String TEXT_CSV = "text/csv"; /...
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.wicketstuff.rest.contenthandling.RestMimeTypes; import org.wicketstuff.rest.utils.http.HttpMethod;
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/RestMimeTypes.java // public class RestMimeTypes { // public static final String APPLICATION_RSS_XML = "application/rss+xml"; // // public static final String TEXT_CSS = "text/css"; // // public static final String TEXT_CSV = "text/csv"; /...
String consumes() default RestMimeTypes.APPLICATION_JSON;
bitstorm/Wicket-rest-annotations
restannotations/src/test/java/org/wicketstuff/rest/contenthandling/serialdeserial/XmlSerialDeser.java
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/RestMimeTypes.java // public class RestMimeTypes { // public static final String APPLICATION_RSS_XML = "application/rss+xml"; // // public static final String TEXT_CSS = "text/css"; // // public static final String TEXT_CSV = "text/csv"; /...
import java.io.StringWriter; import javax.xml.bind.JAXB; import org.apache.wicket.request.cycle.RequestCycle; import org.apache.wicket.request.http.WebResponse; import org.wicketstuff.rest.contenthandling.RestMimeTypes;
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/RestMimeTypes.java // public class RestMimeTypes { // public static final String APPLICATION_RSS_XML = "application/rss+xml"; // // public static final String TEXT_CSS = "text/css"; // // public static final String TEXT_CSV = "text/csv"; /...
super("UTF-8", RestMimeTypes.APPLICATION_XML);
bitstorm/Wicket-rest-annotations
restannotations-examples/src/main/java/org/wicketstuff/rest/resource/PersonsRestResource.java
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/domain/PersonPojo.java // public class PersonPojo { // private String name; // private String email; // private String password; // // public PersonPojo(String name, String email, String password) { // this.name = name; // this.email = email...
import java.util.ArrayList; import java.util.List; import org.wicketstuff.rest.annotations.MethodMapping; import org.wicketstuff.rest.annotations.parameters.RequestBody; import org.wicketstuff.rest.domain.PersonPojo; import org.wicketstuff.rest.resource.gson.GsonRestResource; import org.wicketstuff.rest.utils.http.Http...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/domain/PersonPojo.java // public class PersonPojo { // private String name; // private String email; // private String password; // // public PersonPojo(String name, String email, String password) { // this.name = name; // this.email = email...
@MethodMapping(value = "/persons/{personIndex}", httpMethod = HttpMethod.DELETE)
bitstorm/Wicket-rest-annotations
restannotations-examples/src/test/java/org/wicketstuff/rest/TestPersonResource.java
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/domain/PersonPojo.java // public class PersonPojo { // private String name; // private String email; // private String password; // // public PersonPojo(String name, String email, String password) { // this.name = name; // this.email = email...
import org.apache.wicket.util.tester.WicketTester; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.wicketstuff.rest.domain.PersonPojo; import org.wicketstuff.rest.utils.test.BufferedMockRequest; import com.google.gson.Gson;
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/domain/PersonPojo.java // public class PersonPojo { // private String name; // private String email; // private String password; // // public PersonPojo(String name, String email, String password) { // this.name = name; // this.email = email...
BufferedMockRequest mockRequest =new BufferedMockRequest(tester.getApplication(), tester.getHttpSession(),
bitstorm/Wicket-rest-annotations
restannotations-examples/src/test/java/org/wicketstuff/rest/TestPersonResource.java
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/domain/PersonPojo.java // public class PersonPojo { // private String name; // private String email; // private String password; // // public PersonPojo(String name, String email, String password) { // this.name = name; // this.email = email...
import org.apache.wicket.util.tester.WicketTester; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.wicketstuff.rest.domain.PersonPojo; import org.wicketstuff.rest.utils.test.BufferedMockRequest; import com.google.gson.Gson;
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/domain/PersonPojo.java // public class PersonPojo { // private String name; // private String email; // private String password; // // public PersonPojo(String name, String email, String password) { // this.name = name; // this.email = email...
String jsonObj = gson.toJson(new PersonPojo("James", "Smith", "changeit"));
bitstorm/Wicket-rest-annotations
restannotations/src/main/java/org/wicketstuff/rest/contenthandling/serialdeserial/TextualObjectSerialDeserial.java
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/IObjectSerialDeserial.java // public interface IObjectSerialDeserial { // /** // * Write the object in input to the response converting it to a given MIME type. // * // * @param targetObject // * the object instance to seri...
import javax.servlet.ServletResponse; import org.apache.wicket.request.http.WebRequest; import org.apache.wicket.request.http.WebResponse; import org.wicketstuff.rest.contenthandling.IObjectSerialDeserial; import org.wicketstuff.rest.contenthandling.RestMimeTypes; import org.wicketstuff.rest.utils.http.HttpUtils;
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations/src/main/java/org/wicketstuff/rest/contenthandling/IObjectSerialDeserial.java // public interface IObjectSerialDeserial { // /** // * Write the object in input to the response converting it to a given MIME type. // * // * @param targetObject // * the object instance to seri...
if(RestMimeTypes.TEXT_PLAIN.equals(mimeType))
bitstorm/Wicket-rest-annotations
restannotations-examples/src/main/java/org/wicketstuff/rest/WicketApplication.java
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/resource/PersonsRestResource.java // public class PersonsRestResource extends GsonRestResource { // private final List<PersonPojo> persons = new ArrayList<PersonPojo>(); // // public PersonsRestResource(){ // persons.add(new PersonPojo("Freddie ...
import java.nio.charset.Charset; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.protocol.http.WebApplication; import org.apache.wicket.request.resource.IResource; import org.apache.wicket.request.resource.ResourceReference; import org.wicketstuff.rest.resource.PersonsRestResource;
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
// Path: restannotations-examples/src/main/java/org/wicketstuff/rest/resource/PersonsRestResource.java // public class PersonsRestResource extends GsonRestResource { // private final List<PersonPojo> persons = new ArrayList<PersonPojo>(); // // public PersonsRestResource(){ // persons.add(new PersonPojo("Freddie ...
PersonsRestResource resource = new PersonsRestResource();
Derek-Ashmore/moneta
moneta-contract-tests/src/test/java/org/moneta/ContractTestSuite.java
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
import net.admin4j.deps.commons.lang3.Validate; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.apache.http.HttpResponse; import org.junit.Assert; import org.junit.Test; import org.moneta.types.search.SearchResult; import org.moneta.utils.RestTestingUtils; import co...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
private SearchResult result;
Derek-Ashmore/moneta
moneta-contract-tests/src/test/java/org/moneta/ContractTestSuite.java
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
import net.admin4j.deps.commons.lang3.Validate; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.apache.http.HttpResponse; import org.junit.Assert; import org.junit.Test; import org.moneta.types.search.SearchResult; import org.moneta.utils.RestTestingUtils; import co...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
HttpResponse response = RestTestingUtils.simpleRESTGet(this.appUrlPrefix+"topics");
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/config/ConnectionPoolFactory.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import org.apache.commons.pool2.impl.GenericObjectPool; import org.moneta.error.MonetaException; import org.moneta.types.topic.MonetaDataSource; import java.beans.PropertyDescriptor; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Properties; import java.util.Set; imp...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
throw new MonetaException("Data source JDBC driver can't be instantiated", e)
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/dao/MonetaSearchDAOTest.java
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.MonetaTestBase; import org.moneta.types.search.SearchRequest; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
SearchRequest searchRequest;
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/dao/MonetaSearchDAOTest.java
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.MonetaTestBase; import org.moneta.types.search.SearchRequest; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
SearchResult result = dao.find(searchRequest);
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/MonetaTopicListServlet.java
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.IOUtils; import org.moneta.types.search.SearchResult; import org.moneta.utils.Servlet...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
SearchResult searchResult = null;
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/MonetaTopicListServlet.java
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.IOUtils; import org.moneta.types.search.SearchResult; import org.moneta.utils.Servlet...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java // public class SearchResult extends BaseType { // // private Integer errorCode; // private String errorMessage; // // @JsonProperty("records") // private Record[] resultData; // // public Integer getErrorCode() { // retur...
ServletUtils.writeResult(searchResult, response.getOutputStream());
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/config/ValueNormalizationUtil.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import org.apache.commons.lang.Validate; import org.apache.commons.lang3.BooleanUtils; import org.moneta.error.MonetaException; import org.apache.commons.lang.ClassUtils;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
throw new MonetaException("Property type not supported")
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/MonetaPerformanceFilter.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import org.moneta.types.topic.Topic; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.se...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
Topic searchTopic = null;
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/MonetaPerformanceFilter.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import org.moneta.types.topic.Topic; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.se...
} } chain.doFilter(request, response); } finally { if (perfMonitor != null) perfMonitor.stop(); long elapsedTime = System.currentTimeMillis() - startTimeMillis; if (transactionTimeThreshold != null && elapsedTime > transactionTimeThreshold) { perfLogger.warn("Transaction lon...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
MonetaException ex = (MonetaException)
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/utils/JsonUtils.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import org.moneta.error.MonetaException; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.commons.lang3.Validate;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
throw new MonetaException("Error converting object to Json", e)
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/utils/ServletUtilsTest.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import org.junit.Assert; import org.junit.Test; import org.moneta.error.MonetaException; import java.io.ByteArrayOutputStream;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
Exception error = new MonetaException("Outer exception message", new IllegalArgumentException("Inner exception message"))
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/utils/ServletUtils.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import java.io.OutputStream; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.exception.ExceptionUtils; import org.moneta.error.MonetaException; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
throw new MonetaException("Error writing result output.", e)
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/dao/SqlSelectExecutorTest.java
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
import org.junit.Assert; import org.junit.Test; import org.moneta.MonetaTestBase; import org.moneta.dao.types.SqlStatement; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
new SqlStatement("select * from INFORMATION_SCHEMA.SYSTEM_TABLES"));
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/dao/SqlSelectExecutorTest.java
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
import org.junit.Assert; import org.junit.Test; import org.moneta.MonetaTestBase; import org.moneta.dao.types.SqlStatement; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/test/java/org/moneta/MonetaTestBase.java // public class MonetaTestBase extends HSqlTestBase { // // @Before // public void setUp() throws Exception { // super.setUp(); // MonetaEnvironment.setConfiguration( // new MonetaConfiguration( // new FileInputStream(MonetaConfi...
SearchResult result = exec.call();
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/MonetaServletTest.java
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
import org.force66.mock.servletapi.MockRequest; import org.force66.mock.servletapi.MockResponse; import org.force66.mock.servletapi.MockServletConfig; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.config.MonetaEnvironment;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
Assert.assertTrue(MonetaEnvironment.getConfiguration().getIgnoredContextPathNodes()==null);
Derek-Ashmore/moneta
moneta-dropwizard/src/main/java/org/moneta/config/dropwizard/MonetaConfigurationSourceProvider.java
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
import io.dropwizard.configuration.ConfigurationSourceProvider; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import org.apache.commons.lang3.Validate; import org.moneta.error.MonetaException;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
// Path: moneta-core/src/main/java/org/moneta/error/MonetaException.java // public class MonetaException extends ContextedRuntimeException { // // private static final long serialVersionUID = -682655095144383360L; // // public MonetaException(String message) { // super(message); // } // // // public Mon...
throw new MonetaException(
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/utils/JsonUtilsTest.java
// Path: moneta-core/src/main/java/org/moneta/types/Record.java // public class Record extends BaseType { // // @JsonProperty("record") // private Value[] values; // // public Value[] getValues() { // return values; // } // // public void setValues(Value[] values) { // this.values = values; // ...
import static org.junit.Assert.fail; import org.apache.commons.lang3.StringUtils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.types.Record; import org.moneta.types.Value; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/Record.java // public class Record extends BaseType { // // @JsonProperty("record") // private Value[] values; // // public Value[] getValues() { // return values; // } // // public void setValues(Value[] values) { // this.values = values; // ...
Record[] records = new Record[2];
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/utils/JsonUtilsTest.java
// Path: moneta-core/src/main/java/org/moneta/types/Record.java // public class Record extends BaseType { // // @JsonProperty("record") // private Value[] values; // // public Value[] getValues() { // return values; // } // // public void setValues(Value[] values) { // this.values = values; // ...
import static org.junit.Assert.fail; import org.apache.commons.lang3.StringUtils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.types.Record; import org.moneta.types.Value; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/Record.java // public class Record extends BaseType { // // @JsonProperty("record") // private Value[] values; // // public Value[] getValues() { // return values; // } // // public void setValues(Value[] values) { // this.values = values; // ...
records[i].setValues(new Value[]{new Value("fi", "fi"), new Value("fo", "fum")});
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/dao/RecordResultSetHandlerTest.java
// Path: moneta-core/src/test/java/org/moneta/HSqlTestBase.java // public class HSqlTestBase { // // protected Connection nativeConnection; // // @Before // public void setUp() throws Exception { // org.hsqldb.jdbcDriver nativeDriver = new org.hsqldb.jdbcDriver(); // nativeConnection = nativeDriv...
import org.apache.commons.dbutils.QueryRunner; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.HSqlTestBase; import org.moneta.types.Record; import org.moneta.types.Value;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/test/java/org/moneta/HSqlTestBase.java // public class HSqlTestBase { // // protected Connection nativeConnection; // // @Before // public void setUp() throws Exception { // org.hsqldb.jdbcDriver nativeDriver = new org.hsqldb.jdbcDriver(); // nativeConnection = nativeDriv...
Record[] recArray = runner.query(nativeConnection,
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/dao/RecordResultSetHandlerTest.java
// Path: moneta-core/src/test/java/org/moneta/HSqlTestBase.java // public class HSqlTestBase { // // protected Connection nativeConnection; // // @Before // public void setUp() throws Exception { // org.hsqldb.jdbcDriver nativeDriver = new org.hsqldb.jdbcDriver(); // nativeConnection = nativeDriv...
import org.apache.commons.dbutils.QueryRunner; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.HSqlTestBase; import org.moneta.types.Record; import org.moneta.types.Value;
handler.getAliasMap().put("TABLE_CAT", "Catalog"); } @Test public void testBasicHappyPath() throws Exception { QueryRunner runner = new QueryRunner(); Record[] recArray = runner.query(nativeConnection, "select * from INFORMATION_SCHEMA.SYSTEM_TABLES", handler); Assert.assertTrue(recArray != nu...
// Path: moneta-core/src/test/java/org/moneta/HSqlTestBase.java // public class HSqlTestBase { // // protected Connection nativeConnection; // // @Before // public void setUp() throws Exception { // org.hsqldb.jdbcDriver nativeDriver = new org.hsqldb.jdbcDriver(); // nativeConnection = nativeDriv...
for (Value value: recArray[0].getValues()) {
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/SearchRequestFactoryTest.java
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
import java.util.Arrays; import org.apache.commons.lang3.StringUtils; import org.force66.mock.servletapi.MockRequest; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.config.MonetaEnvironment; import org.moneta.types.search.CompositeCriteria; import org.moneta.types.sea...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
SearchRequest searchRequest = factory.deriveSearchRequest(request);
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/SearchRequestFactoryTest.java
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
import java.util.Arrays; import org.apache.commons.lang3.StringUtils; import org.force66.mock.servletapi.MockRequest; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.config.MonetaEnvironment; import org.moneta.types.search.CompositeCriteria; import org.moneta.types.sea...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
CompositeCriteria searchCriteria = searchRequest.getSearchCriteria();
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/SearchRequestFactoryTest.java
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
import java.util.Arrays; import org.apache.commons.lang3.StringUtils; import org.force66.mock.servletapi.MockRequest; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.config.MonetaEnvironment; import org.moneta.types.search.CompositeCriteria; import org.moneta.types.sea...
private void testCriteria(Criteria criteria, String fieldName, FilterCriteria.Operation operator, Object value) { Assert.assertTrue(criteria instanceof FilterCriteria); FilterCriteria filterCriteria = (FilterCriteria)criteria; Assert.assertTrue(fieldName.equals(filterCriteria.getFieldName())); Assert.a...
// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java // public class MonetaEnvironment extends BaseType { // // private static MonetaConfiguration configuration; // // public static MonetaConfiguration getConfiguration() { // return configuration; // } // // public static void s...
MonetaEnvironment.getConfiguration().setIgnoredContextPathNodes(new String[]{"moneta"});
Derek-Ashmore/moneta
moneta-core/src/test/java/org/moneta/MonetaTest.java
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchRequest.java // public class SearchRequest extends BaseType { // // private String topic; // private String[] fieldNames; // private CompositeCriteria searchCriteria; // private Long maxRows; // private Long startRow; // // public String...
import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.moneta.types.search.SearchRequest; import org.moneta.types.search.SearchResult;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchRequest.java // public class SearchRequest extends BaseType { // // private String topic; // private String[] fieldNames; // private CompositeCriteria searchCriteria; // private Long maxRows; // private Long startRow; // // public String...
SearchResult result = moneta.find(searchRequest);
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/dao/RecordResultSetHandler.java
// Path: moneta-core/src/main/java/org/moneta/types/Record.java // public class Record extends BaseType { // // @JsonProperty("record") // private Value[] values; // // public Value[] getValues() { // return values; // } // // public void setValues(Value[] values) { // this.values = values; // ...
import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.commons.collections4.map.CaseInsensitiveMap; import org.apache.commons.dbutils.ResultSetHandler; import org.moneta.types.Record; ...
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/Record.java // public class Record extends BaseType { // // @JsonProperty("record") // private Value[] values; // // public Value[] getValues() { // return values; // } // // public void setValues(Value[] values) { // this.values = values; // ...
List<Value> valueList = null;
Derek-Ashmore/moneta
moneta-core/src/main/java/org/moneta/types/search/SearchResult.java
// Path: moneta-core/src/main/java/org/moneta/types/BaseType.java // public abstract class BaseType { // // private static final boolean TEST_TRANSIENTS = false; // // @Override // public int hashCode() { // return HashCodeBuilder.reflectionHashCode(this, TEST_TRANSIENTS); // } // // @Override // p...
import org.moneta.types.Record; import com.fasterxml.jackson.annotation.JsonProperty; import org.moneta.types.BaseType;
/* * This software is licensed under the Apache License, Version 2.0 * (the "License") agreement; you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Path: moneta-core/src/main/java/org/moneta/types/BaseType.java // public abstract class BaseType { // // private static final boolean TEST_TRANSIENTS = false; // // @Override // public int hashCode() { // return HashCodeBuilder.reflectionHashCode(this, TEST_TRANSIENTS); // } // // @Override // p...
private Record[] resultData;
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ConnectorConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.eclipse.jetty.server.*; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption portOption = new DefaultStartOption("port") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ConnectorConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.eclipse.jetty.server.*; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption portOption = new DefaultStartOption("port") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsoleStarter.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.util.IO; import org.kantega.jexmec.ServiceKey; import org.kantega.jexmec.ctor.ConstructorInjectionPluginLoader; import org.kantega.jexmec.manager.DefaultPluginManager; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
private DefaultPluginManager<JettyConsolePlugin> pluginManager;
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsoleStarter.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.util.IO; import org.kantega.jexmec.ServiceKey; import org.kantega.jexmec.ctor.ConstructorInjectionPluginLoader; import org.kantega.jexmec.manager.DefaultPluginManager; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
private MultiOutputStream multiErr;
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsoleStarter.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.util.IO; import org.kantega.jexmec.ServiceKey; import org.kantega.jexmec.ctor.ConstructorInjectionPluginLoader; import org.kantega.jexmec.manager.DefaultPluginManager; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org...
public static File jettyWorkDirectory; public static void main(String[] args) throws Exception { starter = new JettyConsoleStarter(); starter.startPluginManager(); starter.run(starter.readConfiguration(args)); } public static void stop() { starter.shutdown(); } ...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
private Configuration readConfiguration(String[] args) {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsoleStarter.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.util.IO; import org.kantega.jexmec.ServiceKey; import org.kantega.jexmec.ctor.ConstructorInjectionPluginLoader; import org.kantega.jexmec.manager.DefaultPluginManager; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org...
starter = new JettyConsoleStarter(); starter.startPluginManager(); starter.run(starter.readConfiguration(args)); } public static void stop() { starter.shutdown(); } private void shutdown() { if(jettyManager != null) { jettyManager.shutdown(); ...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
Map<String, StartOption> pluginOptions = createOptionByNameMap();
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsoleStarter.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.util.IO; import org.kantega.jexmec.ServiceKey; import org.kantega.jexmec.ctor.ConstructorInjectionPluginLoader; import org.kantega.jexmec.manager.DefaultPluginManager; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org...
public static void stop() { starter.shutdown(); } private void shutdown() { if(jettyManager != null) { jettyManager.shutdown(); } if(jettyWorkDirectory != null) { IO.delete(jettyWorkDirectory); } } private void startPluginManager() { ...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
usage("Options must start with '--': " + arg);
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsoleStarter.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.util.IO; import org.kantega.jexmec.ServiceKey; import org.kantega.jexmec.ctor.ConstructorInjectionPluginLoader; import org.kantega.jexmec.manager.DefaultPluginManager; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org...
options.put(option.getName().toLowerCase(), option); } } return options; } private void run(Configuration configuration) throws Exception { setupStreams(); for (JettyConsolePlugin plugin : pluginManager.getPlugins()) { plugin.configureCons...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
manager.addService(ServiceKey.by(Settings.class), new DefaultSettings(settings));
eirbjo/jetty-console
jetty-console-plugins/jetty-console-requestlog-plugin/src/main/java/org/simplericity/jettyconsole/requestlog/RequestLogPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.server.NCSARequestLog; import org....
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption requestLogOption = new DefaultStartOption("requestLog") {
eirbjo/jetty-console
jetty-console-plugins/jetty-console-requestlog-plugin/src/main/java/org/simplericity/jettyconsole/requestlog/RequestLogPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.server.NCSARequestLog; import org....
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption requestLogOption = new DefaultStartOption("requestLog") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/HeadlessConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption headLessOption = new DefaultStartOption("headless") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/HeadlessConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption headLessOption = new DefaultStartOption("headless") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/HeadlessConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
public void configureConsole(Configuration configuration) {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsoleBootstrapMainClass.java
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ConnectorConfigurationPlugin.java // public class ConnectorConfigurationPlugin extends JettyConsolePluginBase { // // public static final int DEFAULT_PORT = 8080; // private int port = DEFAULT_PORT; // private String bindAddres...
import org.simplericity.jettyconsole.plugins.ConnectorConfigurationPlugin; import java.io.*; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.net.URLDecoder; import java.util.*; im...
return optionsByName; } private File createTempDirectory(String name, int port) { File javaTemp = new File(System.getProperty("java.io.tmpdir")); File temp = new File(javaTemp, name +"_" + port); temp.deleteOnExit(); temp.mkdirs(); return temp; } pri...
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ConnectorConfigurationPlugin.java // public class ConnectorConfigurationPlugin extends JettyConsolePluginBase { // // public static final int DEFAULT_PORT = 8080; // private int port = DEFAULT_PORT; // private String bindAddres...
return ConnectorConfigurationPlugin.DEFAULT_PORT;
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/InitParamConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.webapp.WebAppContext; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import java.util.HashMap; import java.util.Map;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption initParamOption = new DefaultStartOption("initParam") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/InitParamConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.webapp.WebAppContext; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import java.util.HashMap; import java.util.Map;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption initParamOption = new DefaultStartOption("initParam") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/DirAllowedPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.webapp.WebAppContext; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption dirAllowedOption = new DefaultStartOption("dirAllowed") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/DirAllowedPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.webapp.WebAppContext; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption dirAllowedOption = new DefaultStartOption("dirAllowed") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/SSLProxyPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.eclipse.jetty.server.*; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.eclipse.jetty.io.EndPoint; import org...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption sslOption = new DefaultStartOption("sslProxied") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/SSLProxyPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.eclipse.jetty.server.*; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.eclipse.jetty.io.EndPoint; import org...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption sslOption = new DefaultStartOption("sslProxied") {
eirbjo/jetty-console
jetty-console-plugins/jetty-console-log4j-plugin/src/main/java/org/simplericity/jettyconsole/log4j/Log4jPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.apache.log4j.PropertyConfigurator; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import org.apache.l...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption logFileOption = new DefaultStartOption("logConfig") {
eirbjo/jetty-console
jetty-console-plugins/jetty-console-log4j-plugin/src/main/java/org/simplericity/jettyconsole/log4j/Log4jPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.apache.log4j.PropertyConfigurator; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import org.apache.l...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption logFileOption = new DefaultStartOption("logConfig") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ExtractWarPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.webapp.WebAppContext; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption extractWarPlugin = new DefaultStartOption("extractWar") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ExtractWarPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.webapp.WebAppContext; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption extractWarPlugin = new DefaultStartOption("extractWar") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsole.java
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
import org.simplericity.jettyconsole.io.JTextAreaOutputStream; import org.simplericity.jettyconsole.io.MultiOutputStream; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org.slf4j.Logger; im...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
private MultiOutputStream multiOut;
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsole.java
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
import org.simplericity.jettyconsole.io.JTextAreaOutputStream; import org.simplericity.jettyconsole.io.MultiOutputStream; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org.slf4j.Logger; im...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
private final PluginManager<JettyConsolePlugin> pluginManager;
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsole.java
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
import org.simplericity.jettyconsole.io.JTextAreaOutputStream; import org.simplericity.jettyconsole.io.MultiOutputStream; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org.slf4j.Logger; im...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
public void init(final Configuration configuration) throws Exception {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsole.java
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
import org.simplericity.jettyconsole.io.JTextAreaOutputStream; import org.simplericity.jettyconsole.io.MultiOutputStream; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org.slf4j.Logger; im...
g2.fillRect(0, 0, getWidth(), getHeight()); g2.setComposite(comp); g2.setColor(c); } }; controls.setOpaque(false); final JTextArea text = new JTextArea(10, 7) { protected void paintComponent(Graphics graphics) { ...
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
OutputStream os = new JTextAreaOutputStream(text);
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/JettyConsole.java
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
import org.simplericity.jettyconsole.io.JTextAreaOutputStream; import org.simplericity.jettyconsole.io.MultiOutputStream; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.JettyConsolePlugin; import org.slf4j.Logger; im...
} b.add(controls); back.add(b, BorderLayout.SOUTH); final JTextField portField = new JTextField(); portField.setText("8080"); portField.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { if (startA...
// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/io/JTextAreaOutputStream.java // public class JTextAreaOutputStream extends OutputStream { // // private JTextArea text; // // public JTextAreaOutputStream(JTextArea text) { // this.text = text; // } // // public void wri...
for(StartOption option : plugin.getStartOptions()) {
eirbjo/jetty-console
jetty-console-plugins/jetty-console-jettyxml-plugin/src/main/java/org/simplericity/jettyconsole/jettyxml/JettyXmlPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.xml.sax.SAXException; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; import org.eclipse.j...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption jettyXmlOption = new JettyXmlFileOption("jettyXml", jettyXmlFiles);
eirbjo/jetty-console
jetty-console-plugins/jetty-console-jettyxml-plugin/src/main/java/org/simplericity/jettyconsole/jettyxml/JettyXmlPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.xml.sax.SAXException; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; import org.eclipse.j...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
class JettyXmlFileOption extends DefaultStartOption {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ContextPathConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
private StartOption contextPathOption = new DefaultStartOption("contextPath") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ContextPathConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
private StartOption contextPathOption = new DefaultStartOption("contextPath") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/ContextPathConfigurationPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.simplericity.jettyconsole.api.Configuration; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
public void configureConsole(Configuration configuration) {
eirbjo/jetty-console
jetty-console-plugins/jetty-console-startstop-plugin/src/main/java/org/simplericity/jettyconsole/startstop/StartStopScriptPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.util.IO; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import java.io.*; import java.net.URL; import java.net.URLDecoder;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption createStartStopScript = new DefaultStartOption("createStartScript") {
eirbjo/jetty-console
jetty-console-plugins/jetty-console-startstop-plugin/src/main/java/org/simplericity/jettyconsole/startstop/StartStopScriptPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
import org.eclipse.jetty.util.IO; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.StartOption; import java.io.*; import java.net.URL; import java.net.URLDecoder;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java // public class DefaultStartOption implements StartOption { // private String name; // // public DefaultStartOption(String name) { // this.name = name; // } // // public String getName() { // ...
private StartOption createStartStopScript = new DefaultStartOption("createStartScript") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/DefaultJettyManager.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.annotations.AnnotationConfiguration; import org.eclipse.jetty.io.EndPoint; import org.eclipse.jetty.plus.webapp.EnvConfiguration; import org.eclipse.jetty.server.*; import org.eclipse.jetty.server.handler.ContextHandlerCollection; import org.eclipse.jetty.server.handler.HandlerCollection; impor...
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
private PluginManager<JettyConsolePlugin> pluginManager;
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/DefaultJettyManager.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
import org.eclipse.jetty.annotations.AnnotationConfiguration; import org.eclipse.jetty.io.EndPoint; import org.eclipse.jetty.plus.webapp.EnvConfiguration; import org.eclipse.jetty.server.*; import org.eclipse.jetty.server.handler.ContextHandlerCollection; import org.eclipse.jetty.server.handler.HandlerCollection; impor...
public DefaultJettyManager(Properties settings, PluginManager<JettyConsolePlugin> pluginManager, File jettyWorkDirectory) { this.settings = settings; this.pluginManager = pluginManager; this.jettyWorkDirectory = jettyWorkDirectory; this.name = DefaultJettyManager.this.settings.getPr...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/Configuration.java // public interface Configuration { // // boolean isHeadless(); // // void setHeadless(boolean headless); // // String getContextPath(); // // void setContextPath(String contextPath); // } // // Path: jett...
public void startServer(Configuration configuration) {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/TmpDirPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.Settings; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption tmpDirOption = new DefaultStartOption("tmpDir") {
eirbjo/jetty-console
jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/TmpDirPlugin.java
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
import org.simplericity.jettyconsole.api.JettyConsolePluginBase; import org.simplericity.jettyconsole.api.Settings; import org.simplericity.jettyconsole.api.StartOption; import org.simplericity.jettyconsole.api.DefaultStartOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File;
/* * Copyright 2015 Eirik Bjørsnøs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java // public abstract class JettyConsolePluginBase implements JettyConsolePlugin { // // private List<StartOption> startOptions = new ArrayList<StartOption>(); // private String pluginUid; // // public Jett...
private StartOption tmpDirOption = new DefaultStartOption("tmpDir") {
leosilvadev/simplebank
src/main/java/br/fatea/simplebank/config/WebServiceConfig.java
// Path: src/main/java/br/fatea/simplebank/interceptors/SOAPValidationInterceptor.java // public class SOAPValidationInterceptor extends PayloadValidatingInterceptor { // protected Source getValidationRequestSource(WebServiceMessage request) { // Source source = request.getPayloadSource(); // validateSchema(source...
import java.util.List; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.ClassPathResource; import org.springframework.ws.config.annotation.EnableWs; import org.springframework.ws.config.annotation.WsConfigurerAdapter; imp...
package br.fatea.simplebank.config; @EnableWs @Configuration public class WebServiceConfig extends WsConfigurerAdapter { @Override public void addInterceptors(List<EndpointInterceptor> interceptors) { super.addInterceptors(interceptors); interceptors.add(soapValidationInterceptor()); } @Bean
// Path: src/main/java/br/fatea/simplebank/interceptors/SOAPValidationInterceptor.java // public class SOAPValidationInterceptor extends PayloadValidatingInterceptor { // protected Source getValidationRequestSource(WebServiceMessage request) { // Source source = request.getPayloadSource(); // validateSchema(source...
public SOAPValidationInterceptor soapValidationInterceptor() {
leosilvadev/simplebank
src/main/java/br/fatea/simplebank/config/SecurityConfig.java
// Path: src/main/java/br/fatea/simplebank/model/domains/SystemUser.java // @Entity // @Table(name = "TBL_SYSTEM_USER") // public class SystemUser { // // @Id // @GeneratedValue(strategy = GenerationType.AUTO) // @Column(name = "SUS_ID") // private Long id; // // @NotNull // @NotEmpty // @Column(name = "SUS_...
import java.util.LinkedHashMap; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; impo...
package br.fatea.simplebank.config; @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired
// Path: src/main/java/br/fatea/simplebank/model/domains/SystemUser.java // @Entity // @Table(name = "TBL_SYSTEM_USER") // public class SystemUser { // // @Id // @GeneratedValue(strategy = GenerationType.AUTO) // @Column(name = "SUS_ID") // private Long id; // // @NotNull // @NotEmpty // @Column(name = "SUS_...
private SystemUserRepository systemUserRepository;
leosilvadev/simplebank
src/main/java/br/fatea/simplebank/model/services/SystemUserService.java
// Path: src/main/java/br/fatea/simplebank/model/domains/SystemUser.java // @Entity // @Table(name = "TBL_SYSTEM_USER") // public class SystemUser { // // @Id // @GeneratedValue(strategy = GenerationType.AUTO) // @Column(name = "SUS_ID") // private Long id; // // @NotNull // @NotEmpty // @Column(name = "SUS_...
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import br.fatea.simplebank.model.domains.SystemUser; import br.fatea.sim...
package br.fatea.simplebank.model.services; @Service @Transactional public class SystemUserService { @Autowired private BCryptPasswordEncoder encoder;
// Path: src/main/java/br/fatea/simplebank/model/domains/SystemUser.java // @Entity // @Table(name = "TBL_SYSTEM_USER") // public class SystemUser { // // @Id // @GeneratedValue(strategy = GenerationType.AUTO) // @Column(name = "SUS_ID") // private Long id; // // @NotNull // @NotEmpty // @Column(name = "SUS_...
@Autowired private SystemUserRepository systemUserRepository;
leosilvadev/simplebank
src/main/java/br/fatea/simplebank/model/services/SystemUserService.java
// Path: src/main/java/br/fatea/simplebank/model/domains/SystemUser.java // @Entity // @Table(name = "TBL_SYSTEM_USER") // public class SystemUser { // // @Id // @GeneratedValue(strategy = GenerationType.AUTO) // @Column(name = "SUS_ID") // private Long id; // // @NotNull // @NotEmpty // @Column(name = "SUS_...
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import br.fatea.simplebank.model.domains.SystemUser; import br.fatea.sim...
package br.fatea.simplebank.model.services; @Service @Transactional public class SystemUserService { @Autowired private BCryptPasswordEncoder encoder; @Autowired private SystemUserRepository systemUserRepository;
// Path: src/main/java/br/fatea/simplebank/model/domains/SystemUser.java // @Entity // @Table(name = "TBL_SYSTEM_USER") // public class SystemUser { // // @Id // @GeneratedValue(strategy = GenerationType.AUTO) // @Column(name = "SUS_ID") // private Long id; // // @NotNull // @NotEmpty // @Column(name = "SUS_...
public void save(SystemUser systemUser){
leosilvadev/simplebank
src/main/java/br/fatea/simplebank/model/services/PaymentMessageService.java
// Path: src/main/java/br/fatea/simplebank/model/jms/messages/PaymentMessage.java // @JsonTypeName("payment_message") // public class PaymentMessage { // // @JsonProperty(required = true) // private String order; // // @JsonProperty(required = true) // private PaymentStatus status; // // @JsonProperty(requir...
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import br.fatea.simplebank.model.jms.messages.PaymentMessage; import br.fatea.simplebank.model.templates.PaymentJMSTemplate;
package br.fatea.simplebank.model.services; @Service public class PaymentMessageService {
// Path: src/main/java/br/fatea/simplebank/model/jms/messages/PaymentMessage.java // @JsonTypeName("payment_message") // public class PaymentMessage { // // @JsonProperty(required = true) // private String order; // // @JsonProperty(required = true) // private PaymentStatus status; // // @JsonProperty(requir...
@Autowired private PaymentJMSTemplate paymentJMSTemplate;
leosilvadev/simplebank
src/main/java/br/fatea/simplebank/model/services/PaymentMessageService.java
// Path: src/main/java/br/fatea/simplebank/model/jms/messages/PaymentMessage.java // @JsonTypeName("payment_message") // public class PaymentMessage { // // @JsonProperty(required = true) // private String order; // // @JsonProperty(required = true) // private PaymentStatus status; // // @JsonProperty(requir...
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import br.fatea.simplebank.model.jms.messages.PaymentMessage; import br.fatea.simplebank.model.templates.PaymentJMSTemplate;
package br.fatea.simplebank.model.services; @Service public class PaymentMessageService { @Autowired private PaymentJMSTemplate paymentJMSTemplate;
// Path: src/main/java/br/fatea/simplebank/model/jms/messages/PaymentMessage.java // @JsonTypeName("payment_message") // public class PaymentMessage { // // @JsonProperty(required = true) // private String order; // // @JsonProperty(required = true) // private PaymentStatus status; // // @JsonProperty(requir...
public void send(PaymentMessage message, String queueName) {
leosilvadev/simplebank
src/main/java/br/fatea/simplebank/interceptors/SOAPValidationInterceptor.java
// Path: src/main/java/br/fatea/simplebank/exceptions/InvalidClientArgumentsException.java // @SoapFault(faultCode = FaultCode.CLIENT, faultStringOrReason = "Invalid Request Parameters") // public class InvalidClientArgumentsException extends RuntimeException { // private static final long serialVersionUID = -21886755...
import java.io.IOException; import javax.xml.transform.Source; import javax.xml.transform.dom.DOMResult; import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import javax.xml.validation.Validator; import org.springframework.ws.WebServiceMessage; import org.springframework.ws.soap.server.endpoi...
package br.fatea.simplebank.interceptors; public class SOAPValidationInterceptor extends PayloadValidatingInterceptor { protected Source getValidationRequestSource(WebServiceMessage request) { Source source = request.getPayloadSource(); validateSchema(source); return source; } private void validateSchema...
// Path: src/main/java/br/fatea/simplebank/exceptions/InvalidClientArgumentsException.java // @SoapFault(faultCode = FaultCode.CLIENT, faultStringOrReason = "Invalid Request Parameters") // public class InvalidClientArgumentsException extends RuntimeException { // private static final long serialVersionUID = -21886755...
throw new InvalidClientArgumentsException(ex.getMessage());