Package com.maverick.util

Examples of com.maverick.util.ByteArrayReader.readInt()


    if (request.getRequestData() == null)
      return;
    try {
      ByteArrayReader msg = new ByteArrayReader(request.getRequestData());
      stopLocalTunnel(new Integer((int) msg.readInt()), false);
      request.setRequestData(null);

    } catch (IOException ex) {
      // #ifdef DEBUG
      log.error("Failed to read tunnel id from request", ex);
View Full Code Here


       * connection to the Adito server.
       */
      ByteArrayReader reply = new ByteArrayReader(configurationData);
      String launchId = reply.readString();

      int id = (int) reply.readInt();
      String name = reply.readString();
      int type = (int) reply.readInt();
      String transport = reply.readString();
      String sourceInterface = reply.readString();
      int sourcePort = (int) reply.readInt();
View Full Code Here

      ByteArrayReader reply = new ByteArrayReader(configurationData);
      String launchId = reply.readString();

      int id = (int) reply.readInt();
      String name = reply.readString();
      int type = (int) reply.readInt();
      String transport = reply.readString();
      String sourceInterface = reply.readString();
      int sourcePort = (int) reply.readInt();
      int destinationPort = (int) reply.readInt();
      String destinationHost = reply.readString();
View Full Code Here

      int id = (int) reply.readInt();
      String name = reply.readString();
      int type = (int) reply.readInt();
      String transport = reply.readString();
      String sourceInterface = reply.readString();
      int sourcePort = (int) reply.readInt();
      int destinationPort = (int) reply.readInt();
      String destinationHost = reply.readString();

      // #ifdef DEBUG
      log.info("Received permanent tunnel named " + name + " for " + destinationHost + ":" + destinationPort);
View Full Code Here

      String name = reply.readString();
      int type = (int) reply.readInt();
      String transport = reply.readString();
      String sourceInterface = reply.readString();
      int sourcePort = (int) reply.readInt();
      int destinationPort = (int) reply.readInt();
      String destinationHost = reply.readString();

      // #ifdef DEBUG
      log.info("Received permanent tunnel named " + name + " for " + destinationHost + ":" + destinationPort);
      // #endif
View Full Code Here

  public boolean processRequest(Request request, MultiplexedConnection connection) {
    AgentTunnel agent = (AgentTunnel) connection;
    if (request.getRequestName().equals(SETUP_AND_LAUNCH_WEB_FORWARD) && request.getRequestData()!=null) {
      try {
        ByteArrayReader reader = new ByteArrayReader(request.getRequestData());
        int id = (int)reader.readInt();
        WebForward resource = (WebForward)WebForwardPlugin.WEBFORWARD_RESOURCE_TYPE.getResourceById(id);
        if (resource == null) {
          throw new Exception("No resource with ID " + id);
        }
        Policy policy = LaunchSessionManager.getLaunchRequestPolicy(null, agent.getSession(), resource);
View Full Code Here

      return false;
    }

    // Get the application name
    String name = msg.readString();
    msg.readInt(); // shortcut id
    String launchId = msg.readString();
    String descriptor = msg.readString();
    Hashtable parameters = new Hashtable();
    parameters.put("launchId", launchId);
    parameters.put("ticket", launchId);
View Full Code Here

    } else if (request.getRequestName().equals(UPDATE_RESOURCES_REQUEST)) {
      final ByteArrayReader bar = new ByteArrayReader(request.getRequestData());
      Thread t = new Thread() {
        public void run() {
          try {
            updateResources((int)bar.readInt());
          }
          catch(IOException e) {       
          }
        }
      };
View Full Code Here

    try {
      if (request.getRequestData() != null) {
        ByteArrayReader msg = new ByteArrayReader(request
            .getRequestData());
        String title = msg.readString();
        msg.readInt(); // type
        String message = msg.readString();

        getGUI().popup(
            null,
            MessageFormat.format(Messages
View Full Code Here

            ByteArrayReader baw = new ByteArrayReader(agentRequest.getRequestData());
            try {
              while(true) {
                String name = baw.readString();
                String hostname = baw.readString();
                long port = baw.readInt();
                if(tunnels.length() > 0) {
                  tunnels.append(",");
                }
                tunnels.append(name);
                tunnels.append(":");
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.