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
package com.company.project.components; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.MessageSource; | |
import org.springframework.context.support.MessageSourceAccessor; | |
import org.springframework.stereotype.Component; | |
import javax.annotation.PostConstruct; | |
import java.util.Locale; |
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
package com.company.project.controllers; | |
import com.company.project.model.api.ErrorJson; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.autoconfigure.web.ErrorAttributes; | |
import org.springframework.boot.autoconfigure.web.ErrorController; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.context.request.RequestAttributes; |
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
package ldapmodule; | |
import javax.naming.*; | |
import javax.naming.directory.*; | |
import java.util.ArrayList; | |
import java.util.Properties; | |
/** | |
* | |
* @author Arjun Kumbakkara |
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
package ldap; | |
import javax.naming.*; | |
import javax.naming.directory.*; | |
import java.util.ArrayList; | |
import java.util.Hashtable; | |
import java.util.Properties; | |
/** |
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
#!/bin/sh | |
#---------------------------------------------------- | |
# a simple mysql database backup script. | |
# version 0.1, updated April 28, 2017. | |
# copyright 2017 Arjun Kumbakkara | |
#---------------------------------------------------- | |
#Author:Arjun Kumbakkara | |
#Organization : 6D Telecom Solutions. |
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
package org.baeldung.web.hateoas; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.context.ApplicationListener; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.util.UriComponentsBuilder; | |
import com.google.common.base.Preconditions; |
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
package org.baeldung.web.hateoas; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.context.ApplicationListener; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.util.UriComponentsBuilder; | |
import com.google.common.base.Preconditions; |
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
#!/bin/bash\ | |
# Author : Arjun Kumbakkara | |
# Copyright (c) 2k17, 6dTechnologies | |
# Automates the Jmeter Test plan Execution and Clips the value Average Rate (which translates to Throughput aka TPS ) | |
#PreRequisite: The JMX Test Plan (*.jmx) has to have the pattern ##-ValidToken-## (As Token expiration can occur any unmonitored timestamp) | |
#__________________________________________________________ | |
#<elementProp name="" elementType="Header"> | |
#<stringProp name="Header.name">X-Authorization</stringProp> |
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
/** | |
* | |
* @author Arjun Kumbakkara | |
* @version 1.0.0 | |
* | |
* <p> | |
* <b><u>Development History</u></b><br> | |
* <table border="1" width="100%"> | |
* <tr> | |
* <td width="15%"><b>Date</b></td> |
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
import java.security.SecureRandom; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.HostnameVerifier; | |
import javax.net.ssl.HttpsURLConnection; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSession; | |
import javax.net.ssl.TrustManager; | |
import javax.net.ssl.X509TrustManager; |
OlderNewer