Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.net
Class ContentHandler

java.lang.Object
  extended by oracle.adfnmc.java.net.ContentHandler

public abstract class ContentHandler
extends java.lang.Object

This class converts the content of a certain format into a Java type Object. It is implemented differently for each content type in each platform. It is created by ContentHandlerFactory

See Also:
ContentHandlerFactory, URL, URLConnection.getContent()

Constructor Summary
ContentHandler()
           
 
Method Summary
abstract  java.lang.Object getContent(URLConnection uConn)
          Answers the object pointed by the specified URL Connection uConn.
 java.lang.Object getContent(URLConnection uConn, java.lang.Class[] types)
          Answers the object pointed by the specified URL Connection uConn.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHandler

public ContentHandler()
Method Detail

getContent

public abstract java.lang.Object getContent(URLConnection uConn)
                                     throws java.io.IOException
Answers the object pointed by the specified URL Connection uConn.

Parameters:
uConn - URLConnection the URL connection that points to the desired object
Returns:
java.lang.Object the object referred by uConn
Throws:
java.io.IOException - thrown if an IO error occurs during the retrieval of the object

getContent

public java.lang.Object getContent(URLConnection uConn,
                                   java.lang.Class[] types)
                            throws java.io.IOException
Answers the object pointed by the specified URL Connection uConn.

Parameters:
uConn - java.net.URLConnection the URL connection that points to the desired object
types - The list of acceptable content types
Returns:
Object The object of the resource pointed by this URL, or null if the content does not match a specified content type.
Throws:
java.io.IOException - If an error occurred obtaining the content.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.