|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CallbackFactory
Interface for an object that Client and VeriplaceState
use to generate callback URLs for OAuth transactions. The standard implementation of this
is DefaultCallbackFactory, which provides automatic
detection of URL properties and parameters, and allows you to override most of these if
needed. You can also create your own implementation of CallbackFactory if you require
different behavior.
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String[]> |
captureParameters(HttpServletRequest request)
Given an HTTP request, returns a map containing the names and values of all HTTP GET or POST parameters that should be included in a callback. |
java.lang.String |
createCallbackUrl(HttpServletRequest request,
boolean includePath)
Given an HTTP request, returns a callback URL that should access the same resource as that request. |
| Method Detail |
|---|
java.lang.String createCallbackUrl(HttpServletRequest request,
boolean includePath)
request - the current HTTP requestincludePath - true if the full URL path should be included (not including the
query string); false if it should just be the server and portjava.util.Map<java.lang.String,java.lang.String[]> captureParameters(HttpServletRequest request)
request - the current HTTP request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||