Package com.github.gastaldi.git.impl
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.Stringdecorate(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
-
Constructor Details
-
URLCredentialsDecoratorImpl
public URLCredentialsDecoratorImpl()
-
-
Method Details
-
decorate
public java.lang.String decorate(java.lang.String url, java.lang.String username, java.lang.String password)Description copied from interface:URLCredentialsDecoratorDecorates given url with credentials if present or returns as is when there are no credentials Credentials will be escaped for url- Specified by:
decoratein interfaceURLCredentialsDecorator
-