builder.path(base); builder.path(method.getResourceClass().getPath()); String classExpression = builder.getPath(); if (classExpression == null) {
builder.path(base); builder.path(method.getResourceClass().getPath()); String classExpression = builder.getPath(); if (classExpression == null) {
public ResourceClassBuilder buildMethod() { ResteasyUriBuilder builder = (ResteasyUriBuilder) RuntimeDelegate.getInstance().createUriBuilder(); if (method.resourceClass.getPath() != null) builder.path(method.resourceClass.getPath()); if (method.path != null) builder.path(method.path); String pathExpression = builder.getPath(); if (pathExpression == null) pathExpression = ""; method.fullpath = pathExpression; if (method.resourceClass.getClazz().isAnonymousClass()) { method.getMethod().setAccessible(true); } resourceClassBuilder.resourceMethods.add(method); return resourceClassBuilder; } }
public ResourceClassBuilder buildMethod() { ResteasyUriBuilder builder = (ResteasyUriBuilder) RuntimeDelegate.getInstance().createUriBuilder(); if (locator.resourceClass.getPath() != null) builder.path(locator.resourceClass.getPath()); if (locator.path != null) builder.path(locator.path); String pathExpression = builder.getPath(); if (pathExpression == null) pathExpression = ""; locator.fullpath = pathExpression; if (locator.resourceClass.getClazz().isAnonymousClass()) { locator.getMethod().setAccessible(true); } resourceClassBuilder.resourceLocators.add(locator); return resourceClassBuilder; }
public ServiceRegistry(final ServiceRegistry parent, final ResourceMethodRegistry registry, final ResteasyProviderFactory providerFactory, final ResourceLocatorInvoker invoker) throws Exception { this.parent = parent; this.registry = registry; this.providerFactory = providerFactory; this.invoker = invoker; if(invoker != null){ Method method = invoker.getMethod(); ResourceLocator resourceLocator = MethodMetaData.getResourceLocator(invoker); String methodPathVal = resourceLocator.getPath(); String classPathVal = resourceLocator.getResourceClass().getPath(); this.uri = MethodMetaData.appendURIFragments(parent, classPathVal, methodPathVal); if(parent.isRoot()) this.functionPrefix = method.getDeclaringClass().getSimpleName() + "." + method.getName(); else this.functionPrefix = parent.getFunctionPrefix() + "." + method.getName(); } scanRegistry(); }
String klassPath = resourceMethod.getResourceClass().getPath(); Produces produces = method.getAnnotation(Produces.class);
@Override public void removeRegistrations(ResourceClass resourceClass) { for (ResourceMethod method : resourceClass.getResourceMethods()) { if (widerMatching) rootNode.removeBinding(method.getFullpath(), method.getMethod()); else root.removeBinding(resourceClass.getPath(), method.getFullpath(), method.getMethod()); } for (ResourceLocator method : resourceClass.getResourceLocators()) { if (widerMatching) rootNode.removeBinding(method.getFullpath(), method.getMethod()); else root.removeBinding(resourceClass.getPath(), method.getFullpath(), method.getMethod()); } }
if (base != null) builder.path(base); builder.path(method.getResourceClass().getPath()); String classExpression = builder.getPath(); if (classExpression == null)
public ResourceClassBuilder buildMethod() { ResteasyUriBuilder builder = (ResteasyUriBuilder) RuntimeDelegate.getInstance().createUriBuilder(); if (locator.resourceClass.getPath() != null) builder.path(locator.resourceClass.getPath()); if (locator.path != null) builder.path(locator.path); String pathExpression = builder.getPath(); if (pathExpression == null) pathExpression = ""; locator.fullpath = pathExpression; if (locator.resourceClass.getClazz().isAnonymousClass()) { locator.getMethod().setAccessible(true); } resourceClassBuilder.resourceLocators.add(locator); return resourceClassBuilder; }
public ResourceClassBuilder buildMethod() { ResteasyUriBuilder builder = (ResteasyUriBuilder) RuntimeDelegate.getInstance().createUriBuilder(); if (method.resourceClass.getPath() != null) builder.path(method.resourceClass.getPath()); if (method.path != null) builder.path(method.path); String pathExpression = builder.getPath(); if (pathExpression == null) pathExpression = ""; method.fullpath = pathExpression; if (method.resourceClass.getClazz().isAnonymousClass()) { method.getMethod().setAccessible(true); } resourceClassBuilder.resourceMethods.add(method); return resourceClassBuilder; } }
public ServiceRegistry(ServiceRegistry parent, ResourceMethodRegistry registry, ResteasyProviderFactory providerFactory, ResourceLocatorInvoker invoker) throws Exception { this.parent = parent; this.registry = registry; this.providerFactory = providerFactory; this.invoker = invoker; if(invoker != null){ Method method = invoker.getMethod(); ResourceLocator resourceLocator = MethodMetaData.getResourceLocator(invoker); String methodPathVal = resourceLocator.getPath(); String classPathVal = resourceLocator.getResourceClass().getPath(); this.uri = MethodMetaData.appendURIFragments(parent, classPathVal, methodPathVal); if(parent.isRoot()) this.functionPrefix = method.getDeclaringClass().getSimpleName() + "." + method.getName(); else this.functionPrefix = parent.getFunctionPrefix() + "." + method.getName(); } scanRegistry(); }
String klassPath = resourceMethod.getResourceClass().getPath(); Produces produces = method.getAnnotation(Produces.class);
@Override public void removeRegistrations(ResourceClass resourceClass) { for (ResourceMethod method : resourceClass.getResourceMethods()) { if (widerMatching) rootNode.removeBinding(method.getFullpath(), method.getMethod()); else root.removeBinding(resourceClass.getPath(), method.getFullpath(), method.getMethod()); } for (ResourceLocator method : resourceClass.getResourceLocators()) { if (widerMatching) rootNode.removeBinding(method.getFullpath(), method.getMethod()); else root.removeBinding(resourceClass.getPath(), method.getFullpath(), method.getMethod()); } }
@Override public void removeRegistrations(ResourceClass resourceClass) { for (ResourceMethod method : resourceClass.getResourceMethods()) { if (widerMatching) rootNode.removeBinding(method.getFullpath(), method.getMethod()); else root.removeBinding(resourceClass.getPath(), method.getFullpath(), method.getMethod()); } for (ResourceLocator method : resourceClass.getResourceLocators()) { if (widerMatching) rootNode.removeBinding(method.getFullpath(), method.getMethod()); else root.removeBinding(resourceClass.getPath(), method.getFullpath(), method.getMethod()); } }
if (base != null) builder.path(base); builder.path(method.getResourceClass().getPath()); String classExpression = builder.getPath(); if (classExpression == null)
if (base != null) builder.path(base); builder.path(method.getResourceClass().getPath()); String classExpression = builder.getPath(); if (classExpression == null)
builder.path(base); builder.path(method.getResourceClass().getPath()); String classExpression = builder.getPath(); if (classExpression == null) {