com.openexchange.messaging.sms.service
Class AbstractSMSAndMMSTransport

java.lang.Object
  extended by com.openexchange.messaging.sms.service.AbstractSMSAndMMSTransport
All Implemented Interfaces:
MessagingAccountTransport, MessagingResource

public abstract class AbstractSMSAndMMSTransport
extends java.lang.Object
implements MessagingAccountTransport

Abstract super class for SMS and MMS transports to cover not used methods.

Author:
Marcus Klein

Method Summary
 boolean cacheable()
          Indicates if this resource may be cached (for a little amount of time) once opened.
 boolean isConnected()
          Checks if this connection is currently connected.
 boolean ping()
          Pings this resource to check if it can be opened and and immediately closes connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.openexchange.messaging.MessagingAccountTransport
transport
 
Methods inherited from interface com.openexchange.messaging.MessagingResource
close, connect
 

Method Detail

isConnected

public final boolean isConnected()
Description copied from interface: MessagingResource
Checks if this connection is currently connected.

Specified by:
isConnected in interface MessagingResource
Returns:
true if connected; otherwise false

ping

public final boolean ping()
Description copied from interface: MessagingResource
Pings this resource to check if it can be opened and and immediately closes connection.

Specified by:
ping in interface MessagingResource
Returns:
true if a connection can be established; otherwise false

cacheable

public final boolean cacheable()
Description copied from interface: MessagingResource
Indicates if this resource may be cached (for a little amount of time) once opened.

Specified by:
cacheable in interface MessagingResource
Returns:
true if this resource may be cached; otherwise false