org.jbpm.formbuilder.server
Class GuvnorHelper

java.lang.Object
  extended by org.jbpm.formbuilder.server.GuvnorHelper

public class GuvnorHelper
extends Object


Field Summary
static String ENCODING
           
 
Constructor Summary
GuvnorHelper(String baseUrl, String user, String password)
           
 
Method Summary
 org.apache.commons.httpclient.methods.DeleteMethod createDeleteMethod(String url)
           
 org.apache.commons.httpclient.methods.GetMethod createGetMethod(String url)
           
 org.apache.commons.httpclient.methods.PostMethod createPostMethod(String url)
           
 org.apache.commons.httpclient.methods.PutMethod createPutMethod(String url)
           
 String getApiSearchUrl(String pkgName)
           
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 String getPackageNameByContentUUID(String uuid)
           
 String getRestBaseUrl()
           
 String getUser()
           
 String jaxbSerializing(Object obj, Class<?>... boundTypes)
           
<T> T
jaxbTransformation(Class<T> retType, InputStream input, Class<?>... boundTypes)
           
 void setAuth(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethod method)
           
 void setClient(org.apache.commons.httpclient.HttpClient client)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING

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

GuvnorHelper

public GuvnorHelper(String baseUrl,
                    String user,
                    String password)
Method Detail

setClient

public void setClient(org.apache.commons.httpclient.HttpClient client)

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()

createGetMethod

public org.apache.commons.httpclient.methods.GetMethod createGetMethod(String url)

createDeleteMethod

public org.apache.commons.httpclient.methods.DeleteMethod createDeleteMethod(String url)

createPutMethod

public org.apache.commons.httpclient.methods.PutMethod createPutMethod(String url)

createPostMethod

public org.apache.commons.httpclient.methods.PostMethod createPostMethod(String url)

getPackageNameByContentUUID

public String getPackageNameByContentUUID(String uuid)
                                   throws javax.xml.bind.JAXBException,
                                          IOException
Throws:
javax.xml.bind.JAXBException
IOException

jaxbTransformation

public <T> T jaxbTransformation(Class<T> retType,
                                InputStream input,
                                Class<?>... boundTypes)
                     throws javax.xml.bind.JAXBException,
                            IOException
Throws:
javax.xml.bind.JAXBException
IOException

jaxbSerializing

public String jaxbSerializing(Object obj,
                              Class<?>... boundTypes)
                       throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

setAuth

public void setAuth(org.apache.commons.httpclient.HttpClient client,
                    org.apache.commons.httpclient.HttpMethod method)

getApiSearchUrl

public String getApiSearchUrl(String pkgName)
                       throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getRestBaseUrl

public String getRestBaseUrl()

getUser

public String getUser()


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.