Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#193 Add default constructor to wrapper so it can be proxied #199

Merged
merged 1 commit into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020 Oracle and/or its affiliates and others. All rights reserved.
* Copyright (c) 2015, 2021 Oracle and/or its affiliates and others. All rights reserved.
* Copyright (c) 2021 Contributors to Eclipse Foundation.
*
* This program and the accompanying materials are made available under the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,33 @@
* functionality.
* <p>
* All methods default to calling the wrapped object.
*
*
* @since 3.0
*/
public class HttpAuthenticationMechanismWrapper implements HttpAuthenticationMechanism {

private final HttpAuthenticationMechanism httpAuthenticationMechanism;

/**
* This constructor is intended for proxy usuage only.
*/
public HttpAuthenticationMechanismWrapper() {
httpAuthenticationMechanism = null;
}

/**
* Constructs the wrapper with the object being delegated to.
* @param httpAuthenticationMechanism The wrapped object which all methods call.
*/
public HttpAuthenticationMechanismWrapper(HttpAuthenticationMechanism httpAuthenticationMechanism) {
this.httpAuthenticationMechanism = httpAuthenticationMechanism;
}

/**
* Returns the object that's being wrapped.
*
* @return the object that's being wrapped.
*/
public HttpAuthenticationMechanism getWrapped() {
return httpAuthenticationMechanism;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020 Oracle and/or its affiliates and others. All rights reserved.
* Copyright (c) 2015, 2021 Oracle and/or its affiliates and others. All rights reserved.
* Copyright (c) 2021 Contributors to Eclipse Foundation.
*
* This program and the accompanying materials are made available under the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020 Oracle and/or its affiliates and others. All rights reserved.
* Copyright (c) 2015, 2021 Oracle and/or its affiliates and others. All rights reserved.
* Copyright (c) 2021 Contributors to Eclipse Foundation.
*
* This program and the accompanying materials are made available under the
Expand Down