Added missing javadoc for Protocol enumeration

This commit is contained in:
Scott Battaglia 2014-11-20 15:58:52 -05:00
parent a997b25f35
commit 035a63fe8f
1 changed files with 9 additions and 4 deletions

View File

@ -1,13 +1,14 @@
package org.jasig.cas.client;
/**
* Created by battags on 10/14/14.
* Simple enumeration to hold/capture some of the standard request parameters used by the various protocols.
*
* @author Scott Battaglia
* @since 3.4.0
*/
public enum Protocol {
CAS1("ticket", "service"), CAS2(CAS1.getArtifactParameterName(), CAS1.getServiceParameterName()), SAML11("SAMLart", "TARGET");
CAS1("ticket", "service"), CAS2(CAS1), SAML11("SAMLart", "TARGET");
private final String artifactParameterName;
@ -18,6 +19,10 @@ public enum Protocol {
this.serviceParameterName = serviceParameterName;
}
private Protocol(final Protocol protocol) {
this(protocol.getArtifactParameterName(), protocol.getServiceParameterName());
}
public String getArtifactParameterName() {
return this.artifactParameterName;
}