com.novell.sentinel.client.http.java
Class JavaRequestorJSONHandler

java.lang.Object
  extended by com.novell.sentinel.client.http.java.JavaRequestorJSONHandler

public class JavaRequestorJSONHandler
extends Object

A helper implementation class that provides implementations of protected abstract methods required by JavaRequestorBase.

This class exists so that implementation code can be shared between the synchronous and asynchronous implementations of the JSON HttpRequestor.


Field Summary
static String MEDIA_TYPE
           
 
Constructor Summary
JavaRequestorJSONHandler()
           
 
Method Summary
 String getMediaType()
           
 JavaRequestorBase.NcacFault getNcacFault(InputStream source)
           
 JSONParser getParser(InputStream source)
           
 String getToken(InputStream source)
           
 void sendData(OutputStream dest, JSONParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEDIA_TYPE

public static final String MEDIA_TYPE
See Also:
Constant Field Values
Constructor Detail

JavaRequestorJSONHandler

public JavaRequestorJSONHandler()
Method Detail

getMediaType

public String getMediaType()
See Also:
JavaRequestorBase.getMediaType()

getToken

public String getToken(InputStream source)
                throws IOException
Throws:
IOException
See Also:
JavaRequestorBase.getToken(InputStream)

getParser

public JSONParser getParser(InputStream source)
See Also:
JavaRequestorBase.getParser(InputStream)

sendData

public void sendData(OutputStream dest,
                     JSONParser parser)
              throws IOException
Throws:
IOException
See Also:
JavaRequestorBase.sendData(OutputStream, Object)

getNcacFault

public JavaRequestorBase.NcacFault getNcacFault(InputStream source)
                                         throws IOException
Throws:
IOException
See Also:
JavaRequestorBase.getNcacFault(InputStream)