public class

BaseBoxMethod

extends Object
java.lang.Object
   ↳ cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
Known Direct Subclasses

Summary

Fields
protected String apiRequestFormat API request format.
protected String apiUploadUrlPrefix API upload URL prefix.
protected String apiUrlPrefix API URL prefix.
protected String apiVersion API version.
protected Properties config the configuration.
protected BoxHTTPManager httpManager core http manager.
protected String soapApiUrl API SOAP URL, it's static, so no need to read each time.
protected String xmlApiUrl API XML URL, it's static, so no need to read each time.
Public Constructors
BaseBoxMethod()
Public Methods
StringBuffer getRestUrl(String actionName)
according to action name, return a string buffer.
Protected Methods
Document getBaseSoapDocument()
get prepared document.
Element getElementByActionName(String actionName)
Element getSoapElement(String elmName, String elmType)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected String apiRequestFormat

API request format.

protected String apiUploadUrlPrefix

API upload URL prefix.

protected String apiUrlPrefix

API URL prefix.

protected String apiVersion

API version.

protected Properties config

the configuration.

protected BoxHTTPManager httpManager

core http manager.

protected String soapApiUrl

API SOAP URL, it's static, so no need to read each time.

protected String xmlApiUrl

API XML URL, it's static, so no need to read each time.

Public Constructors

public BaseBoxMethod ()

Public Methods

public StringBuffer getRestUrl (String actionName)

according to action name, return a string buffer. i.e. "get_ticket" can result a "http://www.box.net/api/1.0/rest?action=get_ticket"

Parameters
actionName Action name
Returns
  • the URL in string buffer

Protected Methods

protected Document getBaseSoapDocument ()

get prepared document.

Returns
  • dom4j document

protected Element getElementByActionName (String actionName)

Parameters
actionName Action name
Returns
  • element

protected Element getSoapElement (String elmName, String elmType)

Parameters
elmName Element name
elmType Element type
Returns
  • element