FacebookClientWrapper(RenderRequest request, RenderResponse response, PortletContext portletContext, OAuthProvider oauthPr,
String accessToken) {
this.request = request;
this.response = response;
this.portletContext = portletContext;
this.oauthProvider = oauthPr;
this.facebookClient = new DefaultFacebookClient(accessToken);
}
java类javax.portlet.PortletContext的实例源码
FacebookClientWrapper.java 文件源码
项目:docs-samples
阅读 14
收藏 0
点赞 0
评论 0
GooglePortletRequest.java 文件源码
项目:docs-samples
阅读 15
收藏 0
点赞 0
评论 0
public GooglePortletRequest(RenderRequest request, RenderResponse response, PortletContext portletContext,
OAuthProvider oauthPr, String requiredScope) {
this.request = request;
this.response = response;
this.portletContext = portletContext;
this.oauthProvider = oauthPr;
this.requiredScope = requiredScope;
}
JSPHelper.java 文件源码
项目:sakai
阅读 20
收藏 0
点赞 0
评论 0
public static void sendToJSP(PortletContext pContext,
RenderRequest request, RenderResponse response,
String jspPage) throws PortletException {
response.setContentType(request.getResponseContentType());
if (jspPage != null && jspPage.length() != 0) {
try {
PortletRequestDispatcher dispatcher = pContext
.getRequestDispatcher(jspPage);
dispatcher.include(request, response);
} catch (IOException e) {
throw new PortletException("Sakai Dispatch unabble to use "
+ jspPage, e);
}
}
}
JSPHelper.java 文件源码
项目:sakai
阅读 24
收藏 0
点赞 0
评论 0
public static void sendToJSP(PortletContext pContext,
RenderRequest request, RenderResponse response,
String jspPage) throws PortletException {
response.setContentType(request.getResponseContentType());
if (jspPage != null && jspPage.length() != 0) {
try {
PortletRequestDispatcher dispatcher = pContext
.getRequestDispatcher(jspPage);
dispatcher.include(request, response);
} catch (IOException e) {
throw new PortletException("Sakai Dispatch unabble to use "
+ jspPage, e);
}
}
}
JSPHelper.java 文件源码
项目:sakai
阅读 17
收藏 0
点赞 0
评论 0
public static void sendToJSP(PortletContext pContext,
RenderRequest request, RenderResponse response,
String jspPage) throws PortletException {
response.setContentType(request.getResponseContentType());
if (jspPage != null && jspPage.length() != 0) {
try {
PortletRequestDispatcher dispatcher = pContext
.getRequestDispatcher(jspPage);
dispatcher.include(request, response);
} catch (IOException e) {
throw new PortletException("Sakai Dispatch unabble to use "
+ jspPage, e);
}
}
}
AbstractPortletConfigImpl.java 文件源码
项目:portals-pluto
阅读 15
收藏 0
点赞 0
评论 0
public AbstractPortletConfigImpl(PortletContext portletContext, PortletDefinition portlet)
{
this.portletContext = portletContext;
this.portlet = portlet;
this.supportedContainerRuntimeOptions = new HashSet<String>();
for (Enumeration<String> e = portletContext.getContainerRuntimeOptions(); e.hasMoreElements(); )
{
supportedContainerRuntimeOptions.add(e.nextElement());
}
}
JSPHelper.java 文件源码
项目:sakai
阅读 23
收藏 0
点赞 0
评论 0
public static void sendToJSP(PortletContext pContext,
RenderRequest request, RenderResponse response,
String jspPage) throws PortletException {
response.setContentType(request.getResponseContentType());
if (jspPage != null && jspPage.length() != 0) {
try {
PortletRequestDispatcher dispatcher = pContext
.getRequestDispatcher(jspPage);
dispatcher.include(request, response);
} catch (IOException e) {
throw new PortletException("Sakai Dispatch unabble to use "
+ jspPage, e);
}
}
}
PortletContextAwareProcessor.java 文件源码
项目:class-guard
阅读 16
收藏 0
点赞 0
评论 0
/**
* Create a new PortletContextAwareProcessor for the given context and config.
*/
public PortletContextAwareProcessor(PortletContext portletContext, PortletConfig portletConfig) {
this.portletContext = portletContext;
this.portletConfig = portletConfig;
if (portletContext == null && portletConfig != null) {
this.portletContext = portletConfig.getPortletContext();
}
}
PortletContextResourcePatternResolver.java 文件源码
项目:class-guard
阅读 16
收藏 0
点赞 0
评论 0
/**
* Overridden version which checks for PortletContextResource
* and uses {@code PortletContext.getResourcePaths} to find
* matching resources below the web application root directory.
* In case of other resources, delegates to the superclass version.
* @see #doRetrieveMatchingPortletContextResources
* @see PortletContextResource
* @see javax.portlet.PortletContext#getResourcePaths
*/
@Override
protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource, String subPattern) throws IOException {
if (rootDirResource instanceof PortletContextResource) {
PortletContextResource pcResource = (PortletContextResource) rootDirResource;
PortletContext pc = pcResource.getPortletContext();
String fullPattern = pcResource.getPath() + subPattern;
Set<Resource> result = new HashSet<Resource>();
doRetrieveMatchingPortletContextResources(pc, fullPattern, pcResource.getPath(), result);
return result;
}
return super.doFindPathMatchingFileResources(rootDirResource, subPattern);
}
GenericPlutoPortlet.java 文件源码
项目:portals-pluto
阅读 13
收藏 0
点赞 0
评论 0
protected void doHelp(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
PortletContext context = getPortletContext();
PortletRequestDispatcher requestDispatcher =
context.getRequestDispatcher(getHelpPage(request));
requestDispatcher.include(request, response);
}