net.sf.crispy.impl
Class RestExecutor

java.lang.Object
  extended bynet.sf.crispy.Executor
      extended bynet.sf.crispy.impl.AbstractHttpExecutor
          extended bynet.sf.crispy.impl.RestExecutor

public class RestExecutor
extends AbstractHttpExecutor

Remote-Call for REST (REpresentational State Transfer).

Author:
Linke

Field Summary
static java.lang.String DEFAULT_URL_AND_PORT
           
 
Fields inherited from class net.sf.crispy.impl.AbstractHttpExecutor
httpClient, url
 
Fields inherited from class net.sf.crispy.Executor
log
 
Constructor Summary
RestExecutor()
           
 
Method Summary
 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.
 InvocationStrategy getDefaultInvocationStrategy()
          Strategy for invocation the remote service.
 java.lang.String getDefaultUrlAndPort()
          Get default url and port.
 
Methods inherited from class net.sf.crispy.impl.AbstractHttpExecutor
createHttpClient, getParameterTypesStrings
 
Methods inherited from class net.sf.crispy.Executor
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

DEFAULT_URL_AND_PORT

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

RestExecutor

public RestExecutor()
Method Detail

getDefaultUrlAndPort

public java.lang.String getDefaultUrlAndPort()
Description copied from class: Executor
Get default url and port. If no url and port is in properties.

Specified by:
getDefaultUrlAndPort in class Executor
Returns:
Default url and port.

getDefaultInvocationStrategy

public InvocationStrategy getDefaultInvocationStrategy()
Description copied from class: Executor
Strategy for invocation the remote service.

Overrides:
getDefaultInvocationStrategy in class Executor
Returns:
InvocationStrategy

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.

Overrides:
execute in class AbstractHttpExecutor
Throws:
java.lang.Exception


Copyright © 2005-2006 Crispy. All Rights Reserved.