本文整理匯總了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);