FileDocCategorySizeDatePackage
SessionNotifierImpl.javaAPI DocphoneME MR2 API (J2ME)2319Wed May 02 18:00:32 BST 2007com.sun.kvem.jsr082.obex

SessionNotifierImpl

public class SessionNotifierImpl extends Object implements javax.obex.SessionNotifier

Fields Summary
private ObexTransportNotifier
notifier
Constructors Summary
public SessionNotifierImpl(ObexTransportNotifier notifier)

        this.notifier = notifier;
    
Methods Summary
public javax.microedition.io.ConnectionacceptAndOpen(javax.obex.ServerRequestHandler handler)

        return acceptAndOpen(handler, null);
    
public javax.microedition.io.ConnectionacceptAndOpen(javax.obex.ServerRequestHandler handler, javax.obex.Authenticator auth)

        if (notifier == null) {
            throw new IOException("session closed");
        }
        if (handler == null) {
            throw new NullPointerException("null handler");
        }
        ObexTransport transport = notifier.acceptAndOpen();
        return new ServerConnectionImpl(transport, handler, auth);
    
public voidclose()

        if (notifier != null) notifier.close();
        notifier = null;
    
public javax.microedition.io.ConnectiongetTransport()

        return notifier.getUnderlyingConnection();