@Override public AutoWireObject addHttpApplicationObject(Class<?> objectClass, String bindName) { // Determine if already registered the type AutoWireObject object = this.httpApplicationObjects.get(objectClass); if (object != null) { return object; // return the already registered object } // Not registered, so register object = this.addManagedObject(HttpApplicationObjectManagedObjectSource.class.getName(), processScopeWirer, new AutoWire(objectClass)); object.addProperty(HttpApplicationObjectManagedObjectSource.PROPERTY_CLASS_NAME, objectClass.getName()); if ((bindName != null) && (bindName.trim().length() > 0)) { object.addProperty(HttpApplicationObjectManagedObjectSource.PROPERTY_BIND_NAME, bindName); } this.httpApplicationObjects.put(objectClass, object); // Return the object return object; }
@Override public AutoWireObject addHttpSessionObject(Class<?> objectClass, String bindName) { // Determine if already registered the type AutoWireObject object = this.httpSessionObjects.get(objectClass); if (object != null) { return object; // return the already registered object } // Not registered, so register object = this.addManagedObject(HttpSessionObjectManagedObjectSource.class.getName(), processScopeWirer, new AutoWire(objectClass)); object.addProperty(HttpSessionObjectManagedObjectSource.PROPERTY_CLASS_NAME, objectClass.getName()); if ((bindName != null) && (bindName.trim().length() > 0)) { object.addProperty(HttpSessionObjectManagedObjectSource.PROPERTY_BIND_NAME, bindName); } this.httpSessionObjects.put(objectClass, object); // Return the object return object; }
object.addProperty(HttpRequestObjectManagedObjectSource.PROPERTY_CLASS_NAME, objectClass.getName()); if ((bindName != null) && (bindName.trim().length() > 0)) { object.addProperty(HttpRequestObjectManagedObjectSource.PROPERTY_BIND_NAME, bindName); object.addProperty(HttpRequestObjectManagedObjectSource.PROPERTY_IS_LOAD_HTTP_PARAMETERS, String.valueOf(true)); } else {
HttpsServerSocketManagedObjectSource.class.getName(), wirer, new AutoWire(ServerHttpConnection.class)); object.addProperty(PROPERTY_PORT, String.valueOf(port)); if (sslEngineSourceClass != null) { object.addProperty( SslCommunicationProtocol.PROPERTY_SSL_ENGINE_SOURCE, sslEngineSourceClass.getName());
/** * Convenience method to auto-wire in a * {@link HttpServerSocketManagedObjectSource} into an * {@link AutoWireApplication}. * * @param source * {@link AutoWireApplication}. * @param port * Port to listen for HTTP requests. * @param sectionName * Name of the {@link SectionNode}. * @param sectionInputName * Name of the {@link SectionInput}. * @return {@link AutoWireObject}. */ public static AutoWireObject autoWire(AutoWireApplication source, int port, String sectionName, String sectionInputName) { // Create the wirer ManagedObjectSourceWirer wirer = createManagedObjectSourceWirer( sectionName, sectionInputName); // Add this managed object source AutoWireObject object = source.addManagedObject( HttpServerSocketManagedObjectSource.class.getName(), wirer, new AutoWire(ServerHttpConnection.class)); object.addProperty(PROPERTY_PORT, String.valueOf(port)); // Return the object return object; }
.getName(), null, readAutoWire); readObject .addProperty( JsonRequestReaderManagedObjectSource.PROPERTY_JSON_OBJECT_CLASS, parameterType.getName()); if ((bindName != null) && (bindName.length() > 0)) { readObject .addProperty( JsonRequestReaderManagedObjectSource.PROPERTY_BIND_NAME, bindName);
bridge.addProperty( ServletBridgeManagedObjectSource.PROPERTY_INSTANCE_IDENTIFIER, bridger.getInstanceIdentifier()); bridge.addProperty(ServletBridgeManagedObjectSource.PROPERTY_USE_ASYNC, String.valueOf(isUseAsync));
httpAuthentication.addProperty(HttpAuthenticationManagedObjectSource.PROPERTY_HTTP_SECURITY_SOURCE_KEY, key); processScopeWirer, httpSecurityAutoWire); httpSecurity.setTimeout(securityTimeout); httpSecurity.addProperty(HttpSecurityManagedObjectSource.PROPERTY_HTTP_SECURITY_TYPE, securityClass.getName());
ServletDependencyManagedObjectSource.class.getName(), processScopeWirer, new AutoWire(dependencyType)); dependency.addProperty( ServletDependencyManagedObjectSource.PROPERTY_TYPE_NAME, dependencyType.getName());
.getName(), processScopeWirer, new AutoWire(parameterType)) .addProperty( CometProxyPublisherManagedObjectSource.PROPERTY_PROXY_INTERFACE, parameterType.getName());