Search in sources :

Example 6 with RequestContext

use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.

the class AgentsViewBean method getModelInternal.

protected AMModel getModelInternal() {
    RequestContext rc = RequestManager.getRequestContext();
    HttpServletRequest req = rc.getRequest();
    return new AgentsModelImpl(req, getPageSessionAttributes());
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AgentsModelImpl(com.sun.identity.console.agentconfig.model.AgentsModelImpl) RequestContext(com.iplanet.jato.RequestContext)

Example 7 with RequestContext

use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.

the class FileUploaderViewBean method getModelInternal.

protected AMModel getModelInternal() {
    RequestContext rc = RequestManager.getRequestContext();
    HttpServletRequest req = rc.getRequest();
    return new AMModelBase(req, getPageSessionAttributes());
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AMModelBase(com.sun.identity.console.base.model.AMModelBase) RequestContext(com.iplanet.jato.RequestContext)

Example 8 with RequestContext

use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.

the class EntitiesViewBean method getModelInternal.

protected AMModel getModelInternal() {
    RequestContext rc = RequestManager.getRequestContext();
    HttpServletRequest req = rc.getRequest();
    return new EntitiesModelImpl(req, getPageSessionAttributes());
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) RequestContext(com.iplanet.jato.RequestContext) EntitiesModelImpl(com.sun.identity.console.idm.model.EntitiesModelImpl)

Example 9 with RequestContext

use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.

the class EntityPropertiesBase method getEntityModel.

protected AMModel getEntityModel() {
    RequestContext rc = RequestManager.getRequestContext();
    EntityModel model = new EntityModelImpl(rc.getRequest(), getPageSessionAttributes());
    return model;
}
Also used : EntityModel(com.sun.identity.console.federation.model.EntityModel) RequestContext(com.iplanet.jato.RequestContext) EntityModelImpl(com.sun.identity.console.federation.model.EntityModelImpl)

Example 10 with RequestContext

use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.

the class STSEditViewBeanBase method getModelInternal.

protected AMModel getModelInternal() {
    RequestContext rc = RequestManager.getRequestContext();
    HttpServletRequest req = rc.getRequest();
    try {
        if (stsType.isRestSTS()) {
            return new RestSTSInstanceModel(req, getPageSessionAttributes());
        } else {
            return new SoapSTSInstanceModel(req, getPageSessionAttributes());
        }
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
        throw new IllegalStateException("Exception getting model in STSEditViewBeanBase: " + e.getMessage(), e);
    }
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) SoapSTSInstanceModel(com.sun.identity.console.sts.model.SoapSTSInstanceModel) RequestContext(com.iplanet.jato.RequestContext) RestSTSInstanceModel(com.sun.identity.console.sts.model.RestSTSInstanceModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Aggregations

RequestContext (com.iplanet.jato.RequestContext)32 HttpServletRequest (javax.servlet.http.HttpServletRequest)20 IOException (java.io.IOException)5 AuthConfigurationModelImpl (com.sun.identity.console.authentication.model.AuthConfigurationModelImpl)3 AuthPropertiesModelImpl (com.sun.identity.console.authentication.model.AuthPropertiesModelImpl)3 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)3 AMModelBase (com.sun.identity.console.base.model.AMModelBase)3 ISLocaleContext (com.sun.identity.common.ISLocaleContext)2 DelegationModelImpl (com.sun.identity.console.delegation.model.DelegationModelImpl)2 EntityModelImpl (com.sun.identity.console.federation.model.EntityModelImpl)2 RestSTSInstanceModel (com.sun.identity.console.sts.model.RestSTSInstanceModel)2 SoapSTSInstanceModel (com.sun.identity.console.sts.model.SoapSTSInstanceModel)2 PWResetUserValidationModel (com.sun.identity.password.ui.model.PWResetUserValidationModel)2 ByteArrayInputStream (java.io.ByteArrayInputStream)2 DataInputStream (java.io.DataInputStream)2 InputStream (java.io.InputStream)2 ServletOutputStream (javax.servlet.ServletOutputStream)2 HttpServletResponse (javax.servlet.http.HttpServletResponse)2 CompleteRequestException (com.iplanet.jato.CompleteRequestException)1 HiddenField (com.iplanet.jato.view.html.HiddenField)1