Skip to content

Instantly share code, notes, and snippets.

@george-hawkins
Created November 6, 2015 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save george-hawkins/67b00b632c78964f5c55 to your computer and use it in GitHub Desktop.
Save george-hawkins/67b00b632c78964f5c55 to your computer and use it in GitHub Desktop.
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