WebLogic Integration


com.bea.wlai.client
Class AsyncServiceResponse

java.lang.Object
  |
  +--com.bea.wlai.client.AsyncServiceResponse

public class AsyncServiceResponse
extends java.lang.Object
implements java.io.Serializable

Represents a response for an asynchronous service request. This object contains information such as the request's ID, and the response document generated when this request was processed. Any error that occurs while processing an asyn request is stored in an AsyncServiceResponse object, and may be checked for using hasError(). The actual error message text can be retrieved using getErrorMessage().

Author:
Copyright © 2000, 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
AsyncServiceResponseListener, Serialized Form

Constructor Summary
AsyncServiceResponse(QualifiedName appViewName, java.lang.String serviceName, java.lang.String requestID, IDocument response)
           
AsyncServiceResponse(QualifiedName appViewName, java.lang.String serviceName, java.lang.String requestID, java.lang.String errorMsg)
           
 
Method Summary
 QualifiedName getApplicationViewName()
          Get the name of the ApplicationView that hosts the service that was invoked.
 java.lang.String getErrorMessage()
          Get the error message text associated with the error that occurred while processing the request (if any).
 java.lang.String getRequestID()
          Get the ID for the request to which this response belongs.
 IDocument getResponseDocument()
          Get the response document associated with the request.
 java.lang.String getServiceName()
          Get the service name that was invoked.
 boolean hasError()
          Determine if any error occurred while processing the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncServiceResponse

public AsyncServiceResponse(QualifiedName appViewName,
                            java.lang.String serviceName,
                            java.lang.String requestID,
                            java.lang.String errorMsg)

AsyncServiceResponse

public AsyncServiceResponse(QualifiedName appViewName,
                            java.lang.String serviceName,
                            java.lang.String requestID,
                            IDocument response)
Method Detail

getApplicationViewName

public QualifiedName getApplicationViewName()
Get the name of the ApplicationView that hosts the service that was invoked.


getServiceName

public java.lang.String getServiceName()
Get the service name that was invoked.


getRequestID

public java.lang.String getRequestID()
Get the ID for the request to which this response belongs.


getResponseDocument

public IDocument getResponseDocument()
Get the response document associated with the request.


hasError

public boolean hasError()
Determine if any error occurred while processing the request. If this method returns true, the client should call getErrorMessage() to retrieve the error message text.


getErrorMessage

public java.lang.String getErrorMessage()
Get the error message text associated with the error that occurred while processing the request (if any). If no error occurred, this method returns null.


WebLogic Integration

WebLogic Integration (WLI)