Examples of addHeader()


Examples of ch.rasc.wampspring.message.WampMessage.addHeader()

  @Override
  public void handleMessage(WebSocketSession session, WebSocketMessage<?> webSocketMessage) throws Exception {
    Assert.isInstanceOf(TextMessage.class, webSocketMessage);

    WampMessage message = WampMessage.fromJson(jsonFactory, ((TextMessage) webSocketMessage).getPayload());
    message.addHeader(WampMessageHeader.WEBSOCKET_SESSION_ID, session.getId());
    message.addHeader(WampMessageHeader.PRINCIPAL, session.getPrincipal());

    pubSubHandler.handleMessage(message);
    annotationMethodHandler.handleMessage(message);
  }
View Full Code Here

Examples of co.freeside.betamax.message.Response.addHeader()

public class ViaSettingHandler extends ChainedHttpHandler {
    @Override
    public Response handle(Request request) {
        Response response = chain(request);
        response.addHeader(VIA, VIA_HEADER);
        return response;
    }
}
View Full Code Here

Examples of com.amazonaws.DefaultRequest.addHeader()

        for (Entry<String, String> parameter : httpRequest.getParameters().entrySet()) {
            request.addParameter(parameter.getKey(), parameter.getValue());
        }

        for (Entry<String, String> parameter : httpRequest.getHeaders().entrySet()) {
            request.addHeader(parameter.getKey(), parameter.getValue());
        }

        return request;
    }
View Full Code Here

Examples of com.amazonaws.http.HttpRequest.addHeader()

        for (Entry<String, String> parameter : request.getParameters().entrySet()) {
            httpRequest.addParameter(parameter.getKey(), parameter.getValue());
        }

        for (Entry<String, String> parameter : request.getHeaders().entrySet()) {
            httpRequest.addHeader(parameter.getKey(), parameter.getValue());
        }

        httpRequest.setServiceName(request.getServiceName());
        httpRequest.setEndpoint(request.getEndpoint());
        httpRequest.setResourcePath(request.getResourcePath());
View Full Code Here

Examples of com.bergerkiller.bukkit.common.config.ConfigurationNode.addHeader()

      defConfig.gameMode = Bukkit.getDefaultGameMode();
      defConfig.saveDefault(defaultProperties);
      ConfigurationNode defEnv = defaultProperties.getNode("normal");
      defEnv.set("gamemode", "NONE");
      defEnv.setHeader("\nAll settings applied to worlds with the normal environment");
      defEnv.addHeader("You can add all the same world settings here and they will override the main defaults");
      defEnv.addHeader("You can use multiple environments, of which nether, the_end and even nether_flat");
      defaultProperties.save();
    }

    // Worlds configuration
View Full Code Here

Examples of com.bergerkiller.bukkit.common.config.FileConfiguration.addHeader()

    // Continue loading the configuration(s)
    FileConfiguration config = new FileConfiguration(this);
    config.load();

    config.setHeader("This is the configuration of MyWorlds");
    config.addHeader("For more information, you can visit the following websites:");
    config.addHeader("http://dev.bukkit.org/server-mods/my-worlds/");
    config.addHeader("http://forums.bukkit.org/threads/myworlds.31718");

    config.setHeader("teleportInterval", "\nThe interval in miliseconds a player has to wait before being teleported again");
    teleportInterval = config.get("teleportInterval", 2000);
View Full Code Here

Examples of com.caucho.services.server.ServiceContext.addHeader()

        in.skipOptionalCall();

        String header;
        while ((header = in.readHeader()) != null) {
            Object value = in.readObject();
            context.addHeader(header, value);
        }

        String methodName = in.readMethod();
        Method method = null;
        JavaOperation operation = _operationMap.get(methodName);
View Full Code Here

Examples of com.cloud.bridge.service.core.s3.S3AuthParams.addHeader()

                    // -> build up the headers so we can do authentication on this POST
                    HeaderParam oneHeader = new HeaderParam();
                    oneHeader.setName( name );
                    oneHeader.setValue( value );
                    params.addHeader( oneHeader );
                }
                state = 1;
            }
            else if (1 == state && 0 == oneLine.length())
            {
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.submit.transports.http.ExtendedHttpMethod.addHeader()

        }

        // Proxy headers
        method.setHeader("Via", "SoapUI Monitor");
        if (!xForwardedFor) {
            method.addHeader("X-Forwarded-For", request.getRemoteAddr());
        }

        StringBuffer url = new StringBuffer("http://");
        url.append(httpRequest.getServerName());
        if (httpRequest.getServerPort() != 80) {
View Full Code Here

Examples of com.eviware.soapui.support.propertyexpansion.scrollmenu.ScrollableMenu.addHeader()

      menu.add( new TransferFromPropertyActionInvoker( holder, name ) );
    }

    if( holder instanceof MutableTestPropertyHolder )
    {
      menu.addHeader( new TransferFromPropertyActionInvoker( ( MutableTestPropertyHolder )holder ) );
    }

    return menu;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.