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)
CommandHandleronCommand in interface CommandHandler<POP3Session>#onCommand(org.apache.james.protocols.api.ProtocolSession, org.apache.james.protocols.api.Request)public List<Class<?>> getMarkerInterfaces()
ExtensibleHandlergetMarkerInterfaces in interface ExtensibleHandlerExtensibleHandler.getMarkerInterfaces()public void wireExtensions(Class<?> interfaceName, List<?> extension) throws WiringException
ExtensibleHandlerwireExtensions in interface ExtensibleHandlerextension - a list of objects implementing the marker interfaceWiringExceptionExtensibleHandler.wireExtensions(java.lang.Class,
java.util.List)public Collection<String> getImplCommands()
CommandHandlergetImplCommands in interface CommandHandler<POP3Session>CommandHandler.getImplCommands()public Set<String> getImplementedCapabilities(POP3Session session)
CapaCapabilitygetImplementedCapabilities in interface CapaCapabilityorg.apache.james.pop3server.core.CapaCapability#getImplementedCapabilities(org.apache.james.pop3server.POP3Session)Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.