Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package hello;
import com.stormpath.sdk.servlet.config.CookieConfig;
public class DelegatingCookieConfig implements CookieConfig {
private final CookieConfig delegate;
public DelegatingCookieConfig(CookieConfig config) {
this.delegate = config;
public String getName() { return delegate.getName(); }
public String getComment() { return delegate.getComment(); }
public String getDomain() { return delegate.getDomain(); }
public int getMaxAge() { return delegate.getMaxAge(); }
public String getPath() { return delegate.getPath(); }
public boolean isSecure() { return delegate.isSecure(); }
public boolean isHttpOnly() { return delegate.isHttpOnly(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment