Java Code Examples for org.jasig.cas.authentication.principal.SimpleWebApplicationServiceImpl#createServiceFrom()

The following examples show how to use org.jasig.cas.authentication.principal.SimpleWebApplicationServiceImpl#createServiceFrom() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EhCacheTicketRegistryTests.java    From springboot-shiro-cas-mybatis with MIT License 4 votes vote down vote up
public static Service getService() {
    final MockHttpServletRequest request = new MockHttpServletRequest();
    request.addParameter("service", "test");
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}
 
Example 2
Source File: CasArgumentExtractor.java    From springboot-shiro-cas-mybatis with MIT License 4 votes vote down vote up
@Override
public WebApplicationService extractServiceInternal(final HttpServletRequest request) {
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}
 
Example 3
Source File: TestUtils.java    From springboot-shiro-cas-mybatis with MIT License 4 votes vote down vote up
public static Service getService(final String name) {
    final MockHttpServletRequest request = new MockHttpServletRequest();
    request.addParameter("service", name);
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}
 
Example 4
Source File: EhCacheTicketRegistryTests.java    From cas4.0.x-server-wechat with Apache License 2.0 4 votes vote down vote up
public static Service getService() {
    final MockHttpServletRequest request = new MockHttpServletRequest();
    request.addParameter("service", "test");
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}
 
Example 5
Source File: CasArgumentExtractor.java    From cas4.0.x-server-wechat with Apache License 2.0 4 votes vote down vote up
public WebApplicationService extractServiceInternal(final HttpServletRequest request) {
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}
 
Example 6
Source File: TestUtils.java    From cas4.0.x-server-wechat with Apache License 2.0 4 votes vote down vote up
public static Service getService(final String name) {
    final MockHttpServletRequest request = new MockHttpServletRequest();
    request.addParameter("service", name);
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}
 
Example 7
Source File: ProxyController.java    From cas4.0.x-server-wechat with Apache License 2.0 4 votes vote down vote up
private Service getTargetService(final HttpServletRequest request) {
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}
 
Example 8
Source File: ProxyController.java    From springboot-shiro-cas-mybatis with MIT License 2 votes vote down vote up
/**
 * Gets the target service from the request.
 *
 * @param request the request
 * @return the target service
 */
private Service getTargetService(final HttpServletRequest request) {
    return SimpleWebApplicationServiceImpl.createServiceFrom(request);
}