| com.xoetrope.service.http.XHttpRequestProxy
XHttpRequestProxy | public class XHttpRequestProxy extends ServiceProxy (Code) | | Makes a service call via the HTTP protocol. By default the arguments are
URLEncoded and the response unencoded. Unlike the XHttpClientServiceProxy,
this class is intended for use with standard http requests.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.2 $
|
ERR_CANNOT_CONNECT | final public static String ERR_CANNOT_CONNECT(Code) | | Error sent back in the case that a connection cannot be established.
|
PARAM_AUTHORIZATION | final public static String PARAM_AUTHORIZATION(Code) | | |
REQUEST_METHOD | final public static String REQUEST_METHOD(Code) | | |
urlEncode | protected boolean urlEncode(Code) | | |
useCookies | protected boolean useCookies(Code) | | |
XHttpRequestProxy | public XHttpRequestProxy()(Code) | | |
call | public Object call(String method, ServiceContext context) throws ServiceProxyException(Code) | | Makes a call to a server using the http protocol. The arguments are by
default URLEncoded.
Parameters: method - the method name to be invoked Parameters: context - the ServiceContext for this ServiceProxy call the response or result of the call throws: ServiceProxyException - |
getStatus | public Integer getStatus()(Code) | | Get the response code for this request
|
retrieveSessionID | protected void retrieveSessionID(URLConnection conn)(Code) | | Attempt to get the session ID
Parameters: conn - the connection |
setAttributes | public void setAttributes(Hashtable attribs)(Code) | | Set the attributes for this service proxy. This class can set attributes
for 'url' and 'urlEncode'.
Parameters: attribs - The Hashtable of attributes as found in the XML declaration |
setSessionKey | public void setSessionKey(String key)(Code) | | Set the session id header key. By default this is setup to deal with
servlets and has a value of 'jsessionid'
Parameters: key - the new key value |
setUrlEncoding | public void setUrlEncoding(String encode)(Code) | | |
setupSession | public void setupSession(boolean state, String key, String id)(Code) | | Setup the session id information.
Parameters: key - the new key value Parameters: id - the new session id value Parameters: state - true to use cookies, otherwise URL rewriting is used |
|
|