|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestCallback
The primary interface a caller must implement to receive a response to a
Request
.
com.google.gwt.http.HTTP
.
<!-- --> <!-- Copyright 2007 Google Inc. --> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you --> <!-- may not use this file except in compliance with the License. You may --> <!-- may obtain a copy of the License at --> <!-- --> <!-- http://www.apache.org/licenses/LICENSE-2.0 --> <!-- --> <!-- Unless required by applicable law or agreed to in writing, software --> <!-- distributed under the License is distributed on an "AS IS" BASIS, --> <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> <!-- implied. License for the specific language governing permissions and --> <!-- limitations under the License. --> <module> <!-- other inherited modules, such as com.google.gwt.user.User --> <inherits name="com.google.gwt.http.HTTP"/> <!-- additional module settings --> </module>
Method Summary | |
---|---|
void |
onError(Request request,
java.lang.Throwable exception)
Called when a Request does not complete
normally. |
void |
onResponseReceived(Request request,
Response response)
Called when a pending Request completes
normally. |
Method Detail |
---|
void onResponseReceived(Request request, Response response)
Request
completes
normally. Note this method is called even when the status code of the
HTTP response is not "OK", 200.
request
- the object that generated this eventresponse
- an instance of the
Response
classvoid onError(Request request, java.lang.Throwable exception)
Request
does not complete
normally. A RequestTimeoutException
is
one example of the type of error that a request may encounter.
request
- the request object which has experienced the error conditionexception
- the error that was encountered
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |