test-my-signature/src/main/java/se/idsec/signservice/integration/app/config/TestMySignatureConfiguration.java
@Bean("signIntegrationBaseUrl")
  public String signIntegrationBaseUrl(
      @Value("${server.servlet.context-path}") String contextPath,
      @Value("${sp.base-uri}") String baseUri,
      @Value("${server.port}") int serverPort) {

    StringBuffer sb = new StringBuffer(baseUri);
    if (serverPort != 443) {
      sb.append(":").append(serverPort);
    }
    if (!contextPath.equals("/")) {
      sb.append(contextPath);
    }
    return sb.toString();
  }
/**
   * Gets the bean representing the base URL for the signature integration client.
   * 
   * @param contextPath
   *          the context path
   * @param baseUri
   *          the base URI for the application
   * @param serverPort
   *          the server port
   * @return the base URL
   */
Gets the bean representing the base URL for the signature integration client.

@param contextPath
the context path
@param baseUri
the base URI for the application
@param serverPort
the server port
@return the base URL
Gets the bean representing the base URL for the signature integration client . @param contextPath the context path @param baseUri the base URI for the application @param serverPort the server port @return the base URL
@Bean("signIntegrationBaseUrl")
  public String signIntegrationBaseUrl(
      @Value("${server.servlet.context-path}") String contextPath,
      @Value("${sp.base-uri}") String baseUri,
      @Value("${server.port}") int serverPort) {
    StringBuffer sb = new StringBuffer(baseUri);
    if (serverPort != 443) {
      sb.append(":").append(serverPort);
    }
    if (!contextPath.equals("/")) {
      sb.append(contextPath);
    }
    return sb.toString();
  }
@ Bean ( "signIntegrationBaseUrl" ) public String signIntegrationBaseUrl ( @ Value ( "${server.servlet.context-path}" ) String contextPath , @ Value ( "${sp.base-uri}" ) String baseUri , @ Value ( "${server.port}" ) int serverPort ) { StringBuffer sb = new StringBuffer ( baseUri ) ; if ( serverPort != 443 ) { sb . append ( ":" ) . append ( serverPort ) ; } if ( ! contextPath . equals ( "/" ) ) { sb . append ( contextPath ) ; } return sb . toString ( ) ; }
Gets the bean representing the base URL for the signature integration client.
Gets the bean representing the base URL for the signature integration client .