org.jasig.cas.authentication.principal
Class AbstractWebApplicationService

java.lang.Object
  extended by org.jasig.cas.authentication.principal.AbstractWebApplicationService
All Implemented Interfaces:
java.io.Serializable, Principal, Service, WebApplicationService
Direct Known Subclasses:
GoogleAccountsService, SamlService, SimpleWebApplicationServiceImpl

public abstract class AbstractWebApplicationService
extends java.lang.Object
implements WebApplicationService

Abstract implementation of a WebApplicationService.

Since:
3.1
Version:
$Revision: 1.3 $ $Date: 2007/04/19 20:13:01 $
Author:
Scott Battaglia
See Also:
Serialized Form

Field Summary
protected static org.slf4j.Logger LOG
           
 
Constructor Summary
protected AbstractWebApplicationService(java.lang.String id, java.lang.String originalUrl, java.lang.String artifactId, HttpClient httpClient)
           
 
Method Summary
protected static java.lang.String cleanupUrl(java.lang.String url)
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getArtifactId()
          Retrieves the artifact supplied with the service.
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
           
 java.lang.String getId()
          Returns the unique id for the Principal
protected  java.lang.String getOriginalUrl()
           
protected  Principal getPrincipal()
           
 int hashCode()
           
 boolean logOutOfService(java.lang.String sessionIdentifier)
           
 boolean matches(Service service)
           
 void setPrincipal(Principal principal)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jasig.cas.authentication.principal.WebApplicationService
getResponse
 

Field Detail

LOG

protected static final org.slf4j.Logger LOG
Constructor Detail

AbstractWebApplicationService

protected AbstractWebApplicationService(java.lang.String id,
                                        java.lang.String originalUrl,
                                        java.lang.String artifactId,
                                        HttpClient httpClient)
Method Detail

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

getId

public final java.lang.String getId()
Description copied from interface: Principal
Returns the unique id for the Principal

Specified by:
getId in interface Principal
Returns:
the unique id for the Principal.

getArtifactId

public final java.lang.String getArtifactId()
Description copied from interface: WebApplicationService
Retrieves the artifact supplied with the service. May be null.

Specified by:
getArtifactId in interface WebApplicationService
Returns:
the artifact if it exists, null otherwise.

getAttributes

public final java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Specified by:
getAttributes in interface Principal
Returns:

cleanupUrl

protected static java.lang.String cleanupUrl(java.lang.String url)

getOriginalUrl

protected final java.lang.String getOriginalUrl()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getPrincipal

protected Principal getPrincipal()

setPrincipal

public void setPrincipal(Principal principal)
Specified by:
setPrincipal in interface Service

matches

public boolean matches(Service service)
Specified by:
matches in interface Service

logOutOfService

public boolean logOutOfService(java.lang.String sessionIdentifier)
Specified by:
logOutOfService in interface Service


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.