ecologylab.services.authentication.messages
Class Logout

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.xml.ElementState
          extended by ecologylab.services.messages.ServiceMessage<S>
              extended by ecologylab.services.messages.RequestMessage
                  extended by ecologylab.services.messages.DisconnectRequest
                      extended by ecologylab.services.authentication.messages.Logout
All Implemented Interfaces:
AuthMessages, AuthServerRegistryObjects, FieldTypes, XMLTranslationExceptionTypes, java.lang.Comparable

public class Logout
extends DisconnectRequest
implements AuthMessages, AuthServerRegistryObjects

A Logout message indicates that the connnected client no longer wants to be connected.

Author:
Zachary O. Toups (toupsz@cs.tamu.edu)

Nested Class Summary
 
Nested classes/interfaces inherited from class ecologylab.xml.ElementState
ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_bind_from, ElementState.xml_bind_to, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_format, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_nowrap, ElementState.xml_other_tags, ElementState.xml_scope, ElementState.xml_tag, ElementState.xml_text
 
Field Summary
 
Fields inherited from class ecologylab.services.messages.DisconnectRequest
REUSABLE_INSTANCE
 
Fields inherited from class ecologylab.xml.ElementState
CDATA, NORMAL, UTF16, UTF16_LE, UTF8
 
Fields inherited from interface ecologylab.services.authentication.messages.AuthMessages
LOGIN_FAILED_LOGGEDIN, LOGIN_FAILED_NO_IP_SUPPLIED, LOGIN_FAILED_PASSWORD, LOGIN_SUCCESSFUL, LOGOUT_FAILED_IP_MISMATCH, LOGOUT_FAILED_NOT_LOGGEDIN, LOGOUT_SUCCESSFUL, REQUEST_FAILED_NOT_AUTHENTICATED
 
Fields inherited from interface ecologylab.services.authentication.registryobjects.AuthServerRegistryObjects
MAIN_AUTHENTICATABLE
 
Fields inherited from interface ecologylab.xml.FieldTypes
ATTRIBUTE, AWFUL_OLD_NESTED_ELEMENT, BAD_FIELD, COLLECTION_ELEMENT, COLLECTION_SCALAR, IGNORED_ATTRIBUTE, IGNORED_ELEMENT, LEAF, MAP_ELEMENT, MAP_SCALAR, NAME_SPACE_ATTRIBUTE, NAME_SPACE_LEAF_NODE, NAME_SPACE_MASK, NAME_SPACE_NESTED_ELEMENT, NAMESPACE_IGNORED_ELEMENT, NAMESPACE_TRIAL_ELEMENT, NESTED_ELEMENT, PSEUDO_FIELD_DESCRIPTOR, ROOT, TEXT_ELEMENT, TEXT_NODE_VALUE, UNSET_TYPE, WRAPPER, XMLNS_ATTRIBUTE, XMLNS_IGNORED
 
Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN
 
Constructor Summary
Logout()
          Should not normally be used; only for XML translations.
Logout(AuthenticationListEntry entry)
          Creates a new Logout object using the given AuthenticationListEntry object, indicating the user that should be logged out of the server.
 
Method Summary
 AuthenticationListEntry getEntry()
           
 ResponseMessage performService(Scope localScope)
          Attempts to log the user specified by entry from the system; if they are already logged in; if not, sends a failure response.
 
Methods inherited from class ecologylab.services.messages.DisconnectRequest
main
 
Methods inherited from class ecologylab.services.messages.RequestMessage
errorRedirectUrl, isDisposable, okRedirectUrl
 
Methods inherited from class ecologylab.services.messages.ServiceMessage
compareTo, getSender, getTimeStamp, getUid, setSender, setUid, stampTime
 
Methods inherited from class ecologylab.xml.ElementState
buildDOM, buildDOM, buildDOM, buildDOM, buildDOM, buildDOMFromXMLCharSequence, buildDOMFromXMLString, checkAnnotation, classDescriptor, createParentDirs, getChildFieldAccessors, getElementStateById, getFieldDescriptors, getNestedNameSpace, getTextNodeString, hasScalarTextField, lookupNestedNameSpace, parent, recycle, setDeclarationStyle, setParent, setUseDOMForTranslateTo, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXMLCharSequence, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOMCharSequence, translateFromXMLDOMCharSequence, translateFromXMLRootNode, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateToDOM, translateToXML, translateToXML, translateToXML, translateToXML, writePrettyXML, writePrettyXML, writePrettyXML
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Logout

public Logout()
Should not normally be used; only for XML translations.


Logout

public Logout(AuthenticationListEntry entry)
Creates a new Logout object using the given AuthenticationListEntry object, indicating the user that should be logged out of the server.

Parameters:
entry - - the entry to use for this Logout object.
Method Detail

performService

public ResponseMessage performService(Scope localScope)
Attempts to log the user specified by entry from the system; if they are already logged in; if not, sends a failure response.

Overrides:
performService in class DisconnectRequest
Returns:
Response to pass back to the (remote) caller.
See Also:
RequestMessage.performService(ecologylab.collections.Scope)

getEntry

public AuthenticationListEntry getEntry()
Returns:
Returns the entry.