Skip to content

Instantly share code, notes, and snippets.

Embed
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;
}
@Override
public String getName() { return delegate.getName(); }
@Override
public String getComment() { return delegate.getComment(); }
@Override
public String getDomain() { return delegate.getDomain(); }
@Override
public int getMaxAge() { return delegate.getMaxAge(); }
@Override
public String getPath() { return delegate.getPath(); }
@Override
public boolean isSecure() { return delegate.isSecure(); }
@Override
public boolean isHttpOnly() { return delegate.isHttpOnly(); }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment