public class External
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
External.Limit
Limit enumeration.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PN_HEIGHT
Height property.
|
static java.lang.String |
PN_INCLUSION
Inclusion property.
|
static java.lang.String |
PN_LIMIT
Limit property.
|
static java.lang.String |
PN_PASSPARAMS
Pass parameters property.
|
static java.lang.String |
PN_TARGET
Target property.
|
static java.lang.String |
PN_WIDTH
Width property.
|
static java.lang.String |
PV_FIXED
Fixed property value.
|
Constructor and Description |
---|
External(Resource resource,
Page page,
java.lang.String spoolSelector,
java.lang.String postSelector,
java.lang.String targetParam)
Creates a new external based on the given resource
|
Modifier and Type | Method and Description |
---|---|
void |
draw(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Draw this component.
|
java.lang.String |
getHeight()
Return the height as a string.
|
External.Limit |
getLimit()
Return the limit.
|
Resource |
getResource()
Returns the underlying resource.
|
java.lang.String |
getTarget()
Return the target of the external application component.
|
java.lang.String |
getWidth()
Return the width as a string.
|
boolean |
hasContent()
Checks if this external component has content.
|
boolean |
isFixed()
Return a flag indicating whether the external site should be included adaptive (rewritten html) or fixed (as an
IFRAME).
|
boolean |
passParameters()
Return a flag indicating whether parameters should be passed to the external site.
|
void |
setTarget(java.lang.String target)
Override the target to display.
|
public static final java.lang.String PN_TARGET
public static final java.lang.String PN_INCLUSION
public static final java.lang.String PN_LIMIT
public static final java.lang.String PN_PASSPARAMS
public static final java.lang.String PN_WIDTH
public static final java.lang.String PN_HEIGHT
public static final java.lang.String PV_FIXED
public External(Resource resource, Page page, java.lang.String spoolSelector, java.lang.String postSelector, java.lang.String targetParam)
resource
- resourcepage
- pagespoolSelector
- spool selectorpostSelector
- post selectortargetParam
- target paramjava.lang.IllegalArgumentException
- if the given resource is not adaptable to node.public Resource getResource()
public boolean hasContent()
true
if this download has content.public java.lang.String getTarget()
public void setTarget(java.lang.String target)
target
- targetpublic boolean passParameters()
true
if the parameters should be passed; false
otherwisepublic boolean isFixed()
true
if the external site should be included fixed; false
otherwisepublic java.lang.String getWidth()
public java.lang.String getHeight()
public External.Limit getLimit()
public void draw(SlingHttpServletRequest request, SlingHttpServletResponse response) throws java.io.IOException
request
- requestresponse
- responsejava.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved