本文整理汇总了Java中com.sun.jersey.api.model.Parameter类的典型用法代码示例。如果您正苦于以下问题:Java Parameter类的具体用法?Java Parameter怎么用?Java Parameter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Parameter类属于com.sun.jersey.api.model包,在下文中一共展示了Parameter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable getInjectable(ComponentContext componentContext, Authenticated authenticated, Parameter parameter) {
return new Injectable() {
@Override
public Object getValue() {
return new Subject(_securityManager, ThreadContext.getSubject().getPrincipals());
}
};
}
示例2: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<ParsedQuery<? extends QuerySpec>> getInjectable(ComponentContext ic, final BindQuery a, Parameter c) {
return new AbstractHttpContextInjectable<ParsedQuery<? extends QuerySpec>>() {
@Override
public ParsedQuery<? extends QuerySpec> getValue(HttpContext context) {
return QueryParser.newBuilder(a.value()).build().parse(context.getUriInfo().getQueryParameters());
}
};
}
示例3: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable getInjectable(ComponentContext ic, Auth auth, Parameter parameter) {
final Type type = parameter.getParameterType();
final InjectableProvider<Auth, Parameter> delegate = map.get(type);
if (delegate == null) {
return null;
}
return delegate.getInjectable(ic, auth, parameter);
}
示例4: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<ReadBuilder> getInjectable(ComponentContext ic, ProvidedOccurrenceCubeReader a, Parameter c) {
return new Injectable<ReadBuilder>() {
@Override
public ReadBuilder getValue() {
return build(hc.getUriInfo().getQueryParameters());
}
};
}
示例5: getParameters
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public List<Parameter> getParameters() {
return abstractResourceMethod.getParameters();
}
示例6: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<T> getInjectable(ComponentContext ic, Auth auth, Parameter parameter) {
return new BasicAuthInjectable<>(authenticator, auth.required());
}
示例7: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<GitHubClient> getInjectable(final ComponentContext ic, final Auth a, final Parameter c) {
return new GithubInjectable(this.request);
}
示例8: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<?> getInjectable(ComponentContext ic, Auth a, Parameter c) {
return new TokenAuthInjectable<>(authenticator, a.required());
}
示例9: TypedAuthProvider
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
public TypedAuthProvider(Map<Type, InjectableProvider<Auth, Parameter>> map) {
this.map = map;
}
示例10: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable getInjectable(ComponentContext componentContext, HmacAuth hmacAuth, Parameter parameter) {
return new HmacAuthInjectable<T>(requestHandler);
}
示例11: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<?> getInjectable(ComponentContext ic, Auth a, Parameter c) {
return new BearerTokenAuthInjectable(configuration, authenticator, usageDao);
}
示例12: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<?> getInjectable(ComponentContext componentContext, Auth auth, Parameter parameter) {
return new CookieAuthInjectable<T>(authenticator, cookie, auth.required());
}
示例13: createParam
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Param createParam(AbstractResource r, AbstractMethod m, final Parameter p) {
Param param = super.createParam(r, m, p);
return param;
}
示例14: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
@Override
public Injectable<?> getInjectable(ComponentContext ic, RestrictedTo rt, Parameter c) {
return new OsiamRoleAuthInjectable(osiam, rt.value(), realm);
}
示例15: getInjectable
import com.sun.jersey.api.model.Parameter; //导入依赖的package包/类
public Injectable<BasicAuth> getInjectable(ComponentContext componentContext, Auth auth, Parameter parameter) {
return new SpringSecurityInjectable(auth.required(), context);
}