public class GadgetsHandlerService extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
GadgetsHandlerService.MetadataGadgetContext
GadgetContext for metadata request.
|
| Modifier and Type | Field and Description |
|---|---|
protected BeanDelegator |
beanDelegator |
protected BeanFilter |
beanFilter |
protected IframeUriManager |
iframeUriManager |
protected Processor |
processor |
protected SecurityTokenCodec |
securityTokenCodec |
| Constructor and Description |
|---|
GadgetsHandlerService(Processor processor,
IframeUriManager iframeUriManager,
SecurityTokenCodec securityTokenCodec,
BeanFilter beanFilter) |
| Modifier and Type | Method and Description |
|---|---|
GadgetsHandlerApi.BaseResponse |
createBaseResponse(Uri url,
String error) |
GadgetsHandlerApi.MetadataResponse |
getMetadata(GadgetsHandlerApi.MetadataRequest request)
Get gadget metadata information and iframe url.
|
GadgetsHandlerApi.TokenResponse |
getToken(GadgetsHandlerApi.TokenRequest request)
Create security token
|
protected final Processor processor
protected final IframeUriManager iframeUriManager
protected final SecurityTokenCodec securityTokenCodec
protected final BeanDelegator beanDelegator
protected final BeanFilter beanFilter
@Inject public GadgetsHandlerService(Processor processor, IframeUriManager iframeUriManager, SecurityTokenCodec securityTokenCodec, BeanFilter beanFilter)
public GadgetsHandlerApi.MetadataResponse getMetadata(GadgetsHandlerApi.MetadataRequest request) throws ProcessingException
request - request parametersProcessingExceptionpublic GadgetsHandlerApi.TokenResponse getToken(GadgetsHandlerApi.TokenRequest request) throws SecurityTokenException, ProcessingException
request - token paramaters (gadget, owner and viewer)SecurityTokenExceptionProcessingExceptionpublic GadgetsHandlerApi.BaseResponse createBaseResponse(Uri url, String error)
Copyright © 2007-2012. All Rights Reserved.