FileDocCategorySizeDatePackage
ServerRequestHandler.javaAPI DocphoneME MR2 API (J2ME)3069Wed May 02 18:00:30 BST 2007javax.obex

ServerRequestHandler

public class ServerRequestHandler extends Object
This class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.

Fields Summary
private long
connId
Constructors Summary
protected ServerRequestHandler()

        connId = -1;
    
Methods Summary
public final HeaderSetcreateHeaderSet()

        return new HeaderSetImpl(HeaderSetImpl.OWNER_SERVER_USER);
    
public longgetConnectionID()

        return connId;
    
public voidonAuthenticationFailure(byte[] userName)

        // do nothing
    
public intonConnect(HeaderSet request, HeaderSet reply)

        return ResponseCodes.OBEX_HTTP_OK;
    
public intonDelete(HeaderSet request, HeaderSet reply)

        return ResponseCodes.OBEX_HTTP_NOT_IMPLEMENTED;
    
public voidonDisconnect(HeaderSet request, HeaderSet reply)

        // do nothing
    
public intonGet(Operation op)

        return ResponseCodes.OBEX_HTTP_NOT_IMPLEMENTED;
    
public intonPut(Operation op)

        return ResponseCodes.OBEX_HTTP_NOT_IMPLEMENTED;
    
public intonSetPath(HeaderSet request, HeaderSet reply, boolean backup, boolean create)

        return ResponseCodes.OBEX_HTTP_NOT_IMPLEMENTED;
    
public voidsetConnectionID(long id)

        if (id < -1L || id > 0xFFFFFFFFL) {
            throw new IllegalArgumentException("invalid id");
        }
        connId = id;