Class URLCredentialsDecoratorImpl

java.lang.Object
com.github.gastaldi.git.impl.URLCredentialsDecoratorImpl
All Implemented Interfaces:
URLCredentialsDecorator

public class URLCredentialsDecoratorImpl
extends java.lang.Object
implements URLCredentialsDecorator
Author:
Lukas Zaruba, lukas.zaruba@lundegaard.eu, 2019
  • Constructor Summary

    Constructors 
    Constructor Description
    URLCredentialsDecoratorImpl()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String decorate​(java.lang.String url, java.lang.String username, java.lang.String password)
    Decorates given url with credentials if present or returns as is when there are no credentials Credentials will be escaped for url

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • decorate

      public java.lang.String decorate​(java.lang.String url, java.lang.String username, java.lang.String password)
      Description copied from interface: URLCredentialsDecorator
      Decorates given url with credentials if present or returns as is when there are no credentials Credentials will be escaped for url
      Specified by:
      decorate in interface URLCredentialsDecorator