本文整理汇总了Java中org.opensaml.xacml.ctx.RequestType类的典型用法代码示例。如果您正苦于以下问题:Java RequestType类的具体用法?Java RequestType怎么用?Java RequestType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RequestType类属于org.opensaml.xacml.ctx包,在下文中一共展示了RequestType类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processChildElement
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
XACMLAuthzDecisionQueryType xacmlauthzdecisionquery = (XACMLAuthzDecisionQueryType) parentObject;
if (childObject instanceof RequestType) {
xacmlauthzdecisionquery.setRequest((RequestType) childObject);
} else if (childObject instanceof PolicyType) {
xacmlauthzdecisionquery.getPolicies().add((PolicyType) childObject);
} else if (childObject instanceof PolicySetType) {
xacmlauthzdecisionquery.getPolicySets().add((PolicySetType) childObject);
} else if (childObject instanceof ReferencedPoliciesType) {
xacmlauthzdecisionquery.setReferencedPolicies((ReferencedPoliciesType) childObject);
} else {
super.processChildElement(parentObject, childObject);
}
}
示例2: processChildElement
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
RequestType request = (RequestType) parentXMLObject;
if (childXMLObject instanceof ActionType) {
request.setAction((ActionType) childXMLObject);
} else if (childXMLObject instanceof EnvironmentType) {
request.setEnvironment((EnvironmentType) childXMLObject);
} else if (childXMLObject instanceof SubjectType) {
request.getSubjects().add((SubjectType) childXMLObject);
} else if (childXMLObject instanceof ResourceType) {
request.getResources().add((ResourceType) childXMLObject);
} else {
super.processChildElement(parentXMLObject, childXMLObject);
}
}
示例3: processChildElement
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
XACMLPolicyQueryType xacmlpolicyquery = (XACMLPolicyQueryType) parentObject;
if (childObject instanceof RequestType) {
xacmlpolicyquery.getRequests().add((RequestType) childObject);
} else if (childObject.getElementQName().equals(IdReferenceType.POLICY_ID_REFERENCE_ELEMENT_NAME)) {
xacmlpolicyquery.getPolicyIdReferences().add((IdReferenceType) childObject);
} else if (childObject.getElementQName().equals(IdReferenceType.POLICY_SET_ID_REFERENCE_ELEMENT_NAME)) {
xacmlpolicyquery.getPolicySetIdReferences().add((IdReferenceType) childObject);
} else {
super.processChildElement(parentObject, childObject);
}
}
示例4: processChildElement
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
XACMLAuthzDecisionStatementType xacmlauthzdecisionstatement = (XACMLAuthzDecisionStatementType) parentObject;
if (childObject instanceof RequestType) {
xacmlauthzdecisionstatement.setRequest((RequestType) childObject);
} else if (childObject instanceof ResponseType) {
xacmlauthzdecisionstatement.setResponse((ResponseType) childObject);
} else {
super.processChildElement(parentObject, childObject);
}
}
示例5: getRequest
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
public RequestType getRequest() {
return request;
}
示例6: setRequest
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
public void setRequest(RequestType request) {
this.request = prepareForAssignment(this.request, request);
}
示例7: getRequests
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
public List<RequestType> getRequests() {
return (List<RequestType>) choiceGroup.subList(RequestType.DEFAULT_ELEMENT_NAME);
}
示例8: buildObject
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/** {@inheritDoc} */
public RequestType buildObject() {
return buildObject(RequestType.DEFAULT_ELEMENT_NAME);
}
示例9: getRequests
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/**
* Gets the Requests inside the policy query.
*
* @return the XACML Request
*/
public List<RequestType> getRequests();
示例10: getRequest
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/**
* Get's the {@link RequestType} from the <code>XACMLAuthzDecisionStatement</code>.
*
* @return the {@link RequestType} inside the <code>XACMLAuthzDecisionStatement</code>
*/
public RequestType getRequest();
示例11: setRequest
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/**
* Sets a {@link ResponseType} to the <code>XACMLAuthzDecisionStatement</code>.
*
* @param request {@link RequestType}
*/
public void setRequest(RequestType request);
示例12: getRequest
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/**
* Gets the request of the query.
*
* @return XACMLRequest The request inside the query
*/
public RequestType getRequest();
示例13: setRequest
import org.opensaml.xacml.ctx.RequestType; //导入依赖的package包/类
/**
* Set's the XACML Request.
*
* @param request The request of the decision query
*/
public void setRequest(RequestType request);