net.rim.device.api.browser.field2
Class ProtocolController

java.lang.Object
  extended by net.rim.device.api.browser.field2.ProtocolController
All Implemented Interfaces:
BrowserFieldController

public class ProtocolController
extends Object
implements BrowserFieldController

Since:
BlackBerry API 5.0.0

Constructor Summary
ProtocolController(BrowserField browserField)
          Instantiates a new instance of ProtocolController
 
Method Summary
 void handleNavigationRequest(BrowserFieldRequest request)
           
 InputConnection handleResourceRequest(BrowserFieldRequest request)
           
 void setNavigationRequestHandler(String protocol, BrowserFieldNavigationRequestHandler handler)
           
 void setResourceRequestHandler(String protocol, BrowserFieldResourceRequestHandler handler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

ProtocolController

public ProtocolController(BrowserField browserField)
Instantiates a new instance of ProtocolController

Parameters:
browserField - The BrowserField component for which this controller belongs
Since:
BlackBerry API 5.0.0


Method Detail

handleNavigationRequest

public void handleNavigationRequest(BrowserFieldRequest request)
                             throws Exception
Specified by:
handleNavigationRequest in interface BrowserFieldController
Parameters:
request - The navigation request being made
Throws:
Exception
See Also:
BrowserFieldController.handleNavigationRequest(BrowserFieldRequest)
Since:
BlackBerry API 5.0.0

setNavigationRequestHandler

public void setNavigationRequestHandler(String protocol,
                                        BrowserFieldNavigationRequestHandler handler)
Since:
BlackBerry API 5.0.0

handleResourceRequest

public InputConnection handleResourceRequest(BrowserFieldRequest request)
                                      throws Exception
Specified by:
handleResourceRequest in interface BrowserFieldController
Parameters:
request - The resource request being made
Returns:
The InputConnection for the requested resource
Throws:
Exception
See Also:
BrowserFieldController.handleResourceRequest(BrowserFieldRequest)
Since:
BlackBerry API 5.0.0

setResourceRequestHandler

public void setResourceRequestHandler(String protocol,
                                      BrowserFieldResourceRequestHandler handler)
Since:
BlackBerry API 5.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.