Skip to content

NUTCH-2285 Digest Authentication support for Nutch 2.X REST API.#126

Closed
kamaci wants to merge 4 commits intoapache:2.xfrom
kamaci:NUTCH-2285
Closed

NUTCH-2285 Digest Authentication support for Nutch 2.X REST API.#126
kamaci wants to merge 4 commits intoapache:2.xfrom
kamaci:NUTCH-2285

Conversation

@kamaci
Copy link
Member

@kamaci kamaci commented Jun 26, 2016

No description provided.

AuthenticationTypeEnum authenticationType = configManager.get(ConfigResource.DEFAULT)
.getEnum("restapi.auth", AuthenticationTypeEnum.NONE);

if (authenticationType == AuthenticationTypeEnum.NONE) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to the more efficient switch notation. Multiple If's are messy and JDK1.8 has better switch support for string input values.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lewismc I've added switch with enum support.

@kamaci
Copy link
Member Author

kamaci commented Jul 4, 2016

@lewismc this PR is ready to check for merging.

@kamaci
Copy link
Member Author

kamaci commented Jul 9, 2016

I'll create a new pull request which does not have conflicts.

@kamaci kamaci closed this Jul 9, 2016
@kamaci kamaci deleted the NUTCH-2285 branch July 9, 2016 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants