net.sf.crispy.impl
Class AbstractHttpExecutor

java.lang.Object
  extended bynet.sf.crispy.Executor
      extended bynet.sf.crispy.impl.AbstractHttpExecutor
Direct Known Subclasses:
HttpExecutor, RestExecutor

public abstract class AbstractHttpExecutor
extends Executor

Remote-Call with HTTP protocoll.

Author:
Linke

Field Summary
protected  org.apache.commons.httpclient.HttpClient httpClient
           
protected  java.lang.String url
           
 
Fields inherited from class net.sf.crispy.Executor
log
 
Constructor Summary
AbstractHttpExecutor()
           
 
Method Summary
protected  org.apache.commons.httpclient.HttpClient createHttpClient()
           
 java.lang.Object execute(java.lang.Class pvProxyClass, java.lang.Object pvProxy, java.lang.reflect.Method pvMethod, java.lang.Object[] pvArgs)
          Make the invocation of the services.
protected  java.lang.String getParameterTypesStrings(java.lang.Class[] pvClass)
           
 
Methods inherited from class net.sf.crispy.Executor
getDefaultInvocationStrategy, getDefaultUrlAndPort, getInvocationStrategy, getProperties, getUrlAndPort, setInvocationStrategy, setProperties, setUrlAndPort, withConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpClient

protected org.apache.commons.httpclient.HttpClient httpClient

url

protected java.lang.String url
Constructor Detail

AbstractHttpExecutor

public AbstractHttpExecutor()
Method Detail

createHttpClient

protected org.apache.commons.httpclient.HttpClient createHttpClient()

getParameterTypesStrings

protected java.lang.String getParameterTypesStrings(java.lang.Class[] pvClass)

execute

public java.lang.Object execute(java.lang.Class pvProxyClass,
                                java.lang.Object pvProxy,
                                java.lang.reflect.Method pvMethod,
                                java.lang.Object[] pvArgs)
                         throws java.lang.Exception
Description copied from class: Executor
Make the invocation of the services.

Specified by:
execute in class Executor
Parameters:
pvProxyClass - Service interface. Class of the invoked service.
pvProxy -
pvMethod - Method to call.
pvArgs - Parameter of the method.
Returns:
Result of the execute method.
Throws:
java.lang.Exception


Copyright © 2005-2006 Crispy. All Rights Reserved.