This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Objects.requireNonNull(after); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>jar</goal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>downloadSources</id> | |
<properties> | |
<downloadSources>true</downloadSources> | |
<downloadJavadocs>true</downloadJavadocs> | |
</properties> | |
</profile> | |
</profiles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mirrors> | |
<mirror> | |
<id>camel-snapshots</id> | |
<name>Apache Camel Snapshots</name> | |
<url>https://repository.apache.org/content/repositories/snapshots</url> | |
<mirrorOf>camel-snapshots</mirrorOf> | |
</mirror> | |
<mirror> | |
<id>jitpack.io</id> | |
<name>Jitpack Releases</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void decodeAndWriteBase64Pdf() throws Exception { | |
System.out.print("Enter base64EncodedPdfAsIsoString (e.g. from SOAP-Call):"); | |
Scanner s = new Scanner(System.in); | |
String base64EncodedPdfAsIsoString = s.nextLine(); | |
s.close(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar target/myproject-0.0.1-SNAPSHOT.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static InputStream readFileInClasspath2InputStream(String folderWithEndingSlash, String fileName) throws BusinessException { | |
InputStream inputStream = null; | |
try { | |
Path filePath = buildPath(folderWithEndingSlash, fileName); | |
inputStream = Files.newInputStream(filePath); | |
} catch (Exception exception) { | |
throw new BusinessException(ERROR_MSG_START + exception.getMessage(), exception); | |
} | |
return inputStream; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean(name=Bus.DEFAULT_BUS_ID) | |
public SpringBus springBus() { | |
SpringBus springBus = new SpringBus(); | |
LoggingFeature logFeature = new LoggingFeature(); | |
logFeature.setPrettyLogging(true); | |
logFeature.initialize(springBus); | |
springBus.getFeatures().add(logFeature); | |
return springBus; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public Endpoint endpoint() { | |
EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); | |
endpoint.publish(SERVICE_NAME_URL_PATH); | |
endpoint.setWsdlLocation("Weather1.0.wsdl"); | |
LoggingFeature logFeature = new LoggingFeature(); | |
logFeature.setPrettyLogging(true); | |
logFeature.initialize(springBus()); | |
endpoint.getFeatures().add(logFeature); | |
return endpoint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@Profile("logsoapmessages") | |
public class WebServiceMessageLoggerConfiguration { | |
@Autowired | |
private SpringBus springBus; | |
@Bean | |
public LoggingFeature loggingFeature() { | |
// Log SoapMessages to Logfile |