public class CapaCmdHandler extends Object implements CommandHandler<POP3Session>, ExtensibleHandler, CapaCapability
Constructor and Description |
---|
CapaCmdHandler() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getImplCommands()
Return a Collection of implemented commands
|
Set<String> |
getImplementedCapabilities(POP3Session session)
Return a List of responses which should get returned when a client issue
the CAPA command
|
List<Class<?>> |
getMarkerInterfaces()
Return a List of interfaces of plugins that will
extend this.
|
Response |
onCommand(POP3Session session,
Request request)
Handle the command
|
void |
wireExtensions(Class<?> interfaceName,
List<?> extension)
Method called during initialization after all the handlers have been declared
in the ProtocolHandlerChain.
|
public Response onCommand(POP3Session session, Request request)
CommandHandler
onCommand
in interface CommandHandler<POP3Session>
#onCommand(org.apache.james.protocols.api.ProtocolSession, org.apache.james.protocols.api.Request)
public List<Class<?>> getMarkerInterfaces()
ExtensibleHandler
getMarkerInterfaces
in interface ExtensibleHandler
ExtensibleHandler.getMarkerInterfaces()
public void wireExtensions(Class<?> interfaceName, List<?> extension) throws WiringException
ExtensibleHandler
wireExtensions
in interface ExtensibleHandler
extension
- a list of objects implementing the marker interfaceWiringException
ExtensibleHandler.wireExtensions(java.lang.Class,
java.util.List)
public Collection<String> getImplCommands()
CommandHandler
getImplCommands
in interface CommandHandler<POP3Session>
CommandHandler.getImplCommands()
public Set<String> getImplementedCapabilities(POP3Session session)
CapaCapability
getImplementedCapabilities
in interface CapaCapability
org.apache.james.pop3server.core.CapaCapability#getImplementedCapabilities(org.apache.james.pop3server.POP3Session)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.