com.sapportals.wcm.util.http
Interface IRequester
- public interface IRequester
Requester have the main task to perform HTTP requests and return
IWDResponses. A requester can be used for a series of request until released
or closed.
Releasing a requester might make it available for further reuse. Closing a
requester explicitly disallows reuse. This might be necessary when there is
trouble with a request or, for example, when the response body needs to be
discarded.
Note that requester objects are not multithread safe.
Copyright (c) SAP AG 2001-2002
|
Method Summary |
void |
close()
Close the requester and disallow reuse. |
int |
getSoTimeout()
Returns the timeout used for socket operations. |
IResponse |
perform(IRequest request)
Send a HTTP request to the remote server and deliver the response back to
the caller. |
void |
release()
Release this requester and make it available for reuse. |
void |
setSoTimeout(int ms)
Sets the timeout for socket operations. |
perform
public IResponse perform(IRequest request)
throws WcmException
- Send a HTTP request to the remote server and deliver the response back to
the caller.
- Parameters:
request - the HTTP request to perform
- Returns:
- repsonse from the server
- Throws:
WcmException - on trouble with connection
release
public void release()
- Release this requester and make it available for reuse.
close
public void close()
- Close the requester and disallow reuse. The underlying connection will be
closed.
getSoTimeout
public int getSoTimeout()
- Returns the timeout used for socket operations. A timeout value of 0 means
infinite timeout.
- Returns:
- the timeout (milliseconds) used for socket operations
setSoTimeout
public void setSoTimeout(int ms)
- Sets the timeout for socket operations. A value of 0 means inifinite wait.
- Parameters:
ms - soTimeout to be set
Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.