com.aetrion.flickr
Class SOAP

java.lang.Object
  extended by com.aetrion.flickr.Transport
      extended by com.aetrion.flickr.SOAP

public class SOAP
extends Transport

SOAP interface to flickr

Author:
Matt Ray

Field Summary
static java.lang.String BODYELEMENT
           
static java.lang.String PATH
           
static java.lang.String URN
           
 
Fields inherited from class com.aetrion.flickr.Transport
responseClass, REST, SOAP
 
Constructor Summary
SOAP()
           
SOAP(java.lang.String host)
           
SOAP(java.lang.String host, int port)
           
 
Method Summary
 Response get(java.lang.String path, java.util.List parameters)
          Invoke an HTTP GET request on a remote host.
 Response post(java.lang.String path, java.util.List parameters, boolean multipart)
          Invoke an HTTP POST request on a remote host.
 
Methods inherited from class com.aetrion.flickr.Transport
getHost, getPath, getPort, getResponseClass, getTransportType, post, setHost, setPath, setPort, setResponseClass, setTransportType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URN

public static final java.lang.String URN
See Also:
Constant Field Values

BODYELEMENT

public static final java.lang.String BODYELEMENT
See Also:
Constant Field Values

PATH

public static final java.lang.String PATH
See Also:
Constant Field Values
Constructor Detail

SOAP

public SOAP()
     throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException

SOAP

public SOAP(java.lang.String host)
     throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException

SOAP

public SOAP(java.lang.String host,
            int port)
     throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException
Method Detail

get

public Response get(java.lang.String path,
                    java.util.List parameters)
             throws java.io.IOException,
                    org.xml.sax.SAXException
Invoke an HTTP GET request on a remote host. You must close the InputStream after you are done with.

Specified by:
get in class Transport
Parameters:
path - The request path
parameters - The parameters (collection of Parameter objects)
Returns:
The Response
Throws:
java.io.IOException
org.xml.sax.SAXException

post

public Response post(java.lang.String path,
                     java.util.List parameters,
                     boolean multipart)
              throws java.io.IOException,
                     org.xml.sax.SAXException
Invoke an HTTP POST request on a remote host.

Specified by:
post in class Transport
Parameters:
path - The request path
parameters - The parameters (collection of Parameter objects)
multipart - Use multipart
Returns:
The Response object
Throws:
java.io.IOException
org.xml.sax.SAXException


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.