wms-sourcecontrol

16:54:27.677 INFO  jd.cli.Main - Decompiling wms-sourcecontrol.jar
package com.wowza.wms.sourcecontrol;

import com.wowza.wms.sourcecontrol.drivers.SourceControlContext;
import com.wowza.wms.sourcecontrol.drivers.SourceInformation;

public abstract interface ISourceControl
{
  public abstract void setContext(SourceControlContext paramSourceControlContext);
  
  public abstract SourceControlContext getContext();
  
  public abstract SourceInformation getSouceInformation();
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.ISourceControl
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol;

import com.wowza.wms.rest.sourcecontrol.SourceControlFeature;

public abstract interface ISourceControlCamera
  extends ISourceControl
{
  public abstract boolean panTiltStep(SourceControlFeature paramSourceControlFeature);
  
  public abstract boolean zoomStep(SourceControlFeature paramSourceControlFeature);
  
  public abstract byte[] captureImage();
  
  public abstract boolean recallHomePosition();
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.ISourceControlCamera
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol;

import com.wowza.wms.logging.WMSLogger;
import com.wowza.wms.logging.WMSLoggerFactory;

public class SourceControlLogging
{
  private boolean a = true;
  private String b = getClass().getSimpleName();
  private WMSLogger c = WMSLoggerFactory.getLogger(getClass());
  
  public void enableDebug(boolean paramBoolean)
  {
    a = paramBoolean;
  }
  
  public void logDebug(String paramString)
  {
    if (!a) {}
    for (;; c.info(b + paramString)) {
      return;
    }
  }
  
  public void logInfo(String paramString)
  {
    c.info(b + paramString);
  }
  
  public void logWarn(String paramString)
  {
    c.warn(b + paramString);
  }
  
  public void logError(String paramString)
  {
    c.error(b + paramString);
  }
  
  public void logError(String paramString, Throwable paramThrowable)
  {
    c.error(b + paramString, paramThrowable);
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.SourceControlLogging
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol.drivers;

import com.wowza.util.Base64;
import com.wowza.util.JSON;
import com.wowza.util.Unitialized;

public class SourceControlContext
{
  public final int DEFAULT_CONNECTION_TIMEOUT = 1000;
  public final int DEFAULT_READWRITE_TIMEOUT = 3000;
  public Unitialized<String> uri = new Unitialized();
  public Unitialized<String> driver = new Unitialized();
  public Unitialized<String> userName = new Unitialized();
  public Unitialized<String> password = new Unitialized();
  public int connectionTimeout = 1000;
  public int readWriteTimeout = 3000;
  
  /* Error */
  public void loadSettings(JSON paramJSON)
  {
    // Byte code:
    //   0: aload_1
    //   1: ifnonnull +141 -> 142
    //   4: goto +289 -> 293
    //   7: goto +92 -> 99
    //   10: aload_1
    //   11: sipush 1123
    //   14: sipush 171
    //   17: idiv
    //   18: ldc 47
    //   20: invokestatic 53	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   23: invokevirtual 59	com/wowza/util/JSON:containsKey	(Ljava/lang/String;)Z
    //   26: ifeq +157 -> 183
    //   29: aload_0
    //   30: getfield 37	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:password	Lcom/wowza/util/Unitialized;
    //   33: aload_1
    //   34: ldc 61
    //   36: bipush 73
    //   38: iconst_3
    //   39: iadd
    //   40: invokestatic 65	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   43: invokevirtual 69	com/wowza/util/JSON:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   46: invokevirtual 73	com/wowza/util/Unitialized:set	(Ljava/lang/Object;)V
    //   49: goto +134 -> 183
    //   52: aload_1
    //   53: bipush -59
    //   55: bipush 11
    //   57: isub
    //   58: ldc 75
    //   60: invokestatic 53	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   63: invokevirtual 59	com/wowza/util/JSON:containsKey	(Ljava/lang/String;)Z
    //   66: ifeq +120 -> 186
    //   69: aload_0
    //   70: aload_1
    //   71: ldc 77
    //   73: sipush 1056
    //   76: sipush 158
    //   79: idiv
    //   80: invokestatic 65	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   83: invokevirtual 81	com/wowza/util/JSON:getInt	(Ljava/lang/String;)I
    //   86: putfield 41	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:readWriteTimeout	I
    //   89: goto +97 -> 186
    //   92: goto +145 -> 237
    //   95: astore_2
    //   96: goto -86 -> 10
    //   99: aload_1
    //   100: bipush 25
    //   102: bipush 7
    //   104: imul
    //   105: ldc 83
    //   107: invokestatic 53	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   110: invokevirtual 59	com/wowza/util/JSON:containsKey	(Ljava/lang/String;)Z
    //   113: ifeq -21 -> 92
    //   116: aload_0
    //   117: getfield 33	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:driver	Lcom/wowza/util/Unitialized;
    //   120: aload_1
    //   121: ldc 85
    //   123: bipush 42
    //   125: iconst_5
    //   126: isub
    //   127: invokestatic 65	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   130: invokevirtual 69	com/wowza/util/JSON:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   133: invokevirtual 73	com/wowza/util/Unitialized:set	(Ljava/lang/Object;)V
    //   136: goto -44 -> 92
    //   139: goto -87 -> 52
    //   142: aload_1
    //   143: ldc 87
    //   145: bipush 56
    //   147: bipush 9
    //   149: iadd
    //   150: invokestatic 65	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   153: invokevirtual 59	com/wowza/util/JSON:containsKey	(Ljava/lang/String;)Z
    //   156: ifeq -149 -> 7
    //   159: aload_0
    //   160: getfield 31	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:uri	Lcom/wowza/util/Unitialized;
    //   163: aload_1
    //   164: ldc 89
    //   166: bipush 53
    //   168: bipush 37
    //   170: imul
    //   171: invokestatic 65	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   174: invokevirtual 69	com/wowza/util/JSON:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   177: invokevirtual 73	com/wowza/util/Unitialized:set	(Ljava/lang/Object;)V
    //   180: goto -173 -> 7
    //   183: goto +6 -> 189
    //   186: goto +106 -> 292
    //   189: aload_1
    //   190: sipush 1366
    //   193: sipush 252
    //   196: idiv
    //   197: ldc 91
    //   199: invokestatic 53	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   202: invokevirtual 59	com/wowza/util/JSON:containsKey	(Ljava/lang/String;)Z
    //   205: ifeq -66 -> 139
    //   208: aload_0
    //   209: aload_1
    //   210: bipush 113
    //   212: bipush 82
    //   214: swap
    //   215: iadd
    //   216: ldc 93
    //   218: invokestatic 53	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   221: invokevirtual 81	com/wowza/util/JSON:getInt	(Ljava/lang/String;)I
    //   224: putfield 39	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:connectionTimeout	I
    //   227: goto -88 -> 139
    //   230: astore_2
    //   231: goto -132 -> 99
    //   234: goto -224 -> 10
    //   237: aload_1
    //   238: ldc 95
    //   240: sipush 555
    //   243: sipush 141
    //   246: idiv
    //   247: invokestatic 65	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   250: invokevirtual 59	com/wowza/util/JSON:containsKey	(Ljava/lang/String;)Z
    //   253: ifeq -19 -> 234
    //   256: aload_0
    //   257: getfield 35	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:userName	Lcom/wowza/util/Unitialized;
    //   260: aload_1
    //   261: ldc 97
    //   263: bipush 7
    //   265: bipush 13
    //   267: iadd
    //   268: invokestatic 65	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   271: invokevirtual 69	com/wowza/util/JSON:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   274: invokevirtual 73	com/wowza/util/Unitialized:set	(Ljava/lang/Object;)V
    //   277: goto -43 -> 234
    //   280: astore_2
    //   281: goto -229 -> 52
    //   284: astore_2
    //   285: goto +7 -> 292
    //   288: astore_2
    //   289: goto -100 -> 189
    //   292: return
    //   293: return
    //   294: astore_2
    //   295: goto -58 -> 237
    // Line number table:
    //   Java source line #27	-> byte code offset #0
    //   Java source line #36	-> byte code offset #7
    //   Java source line #55	-> byte code offset #10
    //   Java source line #56	-> byte code offset #29
    //   Java source line #70	-> byte code offset #52
    //   Java source line #71	-> byte code offset #69
    //   Java source line #43	-> byte code offset #92
    //   Java source line #49	-> byte code offset #95
    //   Java source line #39	-> byte code offset #99
    //   Java source line #40	-> byte code offset #116
    //   Java source line #66	-> byte code offset #139
    //   Java source line #32	-> byte code offset #142
    //   Java source line #33	-> byte code offset #159
    //   Java source line #59	-> byte code offset #183
    //   Java source line #73	-> byte code offset #186
    //   Java source line #63	-> byte code offset #189
    //   Java source line #64	-> byte code offset #208
    //   Java source line #34	-> byte code offset #230
    //   Java source line #51	-> byte code offset #234
    //   Java source line #47	-> byte code offset #237
    //   Java source line #48	-> byte code offset #256
    //   Java source line #65	-> byte code offset #280
    //   Java source line #72	-> byte code offset #284
    //   Java source line #57	-> byte code offset #288
    //   Java source line #74	-> byte code offset #292
    //   Java source line #28	-> byte code offset #293
    //   Java source line #41	-> byte code offset #294
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	298	0	this	SourceControlContext
    //   0	298	1	paramJSON	JSON
    //   95	1	2	localException1	Exception
    //   230	1	2	localException2	Exception
    //   280	1	2	localException3	Exception
    //   284	1	2	localException4	Exception
    //   288	1	2	localException5	Exception
    //   294	1	2	localException6	Exception
    // Exception table:
    //   from	to	target	type
    //   237	280	95	java/lang/Exception
    //   142	183	230	java/lang/Exception
    //   189	230	280	java/lang/Exception
    //   52	92	284	java/lang/Exception
    //   10	52	288	java/lang/Exception
    //   99	139	294	java/lang/Exception
  }
  
  /* Error */
  public boolean isValid()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 31	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:uri	Lcom/wowza/util/Unitialized;
    //   4: aconst_null
    //   5: invokevirtual 103	com/wowza/util/Unitialized:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   8: ifnull +6 -> 14
    //   11: goto +7 -> 18
    //   14: iconst_0
    //   15: goto +17 -> 32
    //   18: aload_0
    //   19: getfield 33	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:driver	Lcom/wowza/util/Unitialized;
    //   22: aconst_null
    //   23: invokevirtual 103	com/wowza/util/Unitialized:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   26: ifnull -12 -> 14
    //   29: goto +4 -> 33
    //   32: ireturn
    //   33: iconst_1
    //   34: goto -2 -> 32
    // Line number table:
    //   Java source line #78	-> byte code offset #0
  }
  
  public String toString()
  {
    return "{" + toStringInternal() + "}";
  }
  
  protected String toStringInternal()
  {
    StringBuilder localStringBuilder = new StringBuilder(JSON.copyValueOf("Kbxdvf/1", 105 + 70) + ((String)driver.get(JSON.copyValueOf("\n.*,,3+", 59 * 45))).toString() + Base64.endsWith(-2 - -30, ";1"));
    localStringBuilder.append(Base64.endsWith(55 * 11, "\b\f\026zf") + ((String)uri.get(JSON.copyValueOf("Ouwsqh.", 44 - -14))).toString() + Base64.endsWith(126 + -47, "h|"));
    localStringBuilder.append(JSON.copyValueOf("\b-:2\017#.!a", 41 * 21) + userName.toString() + JSON.copyValueOf("\"*", '?' / 121));
    localStringBuilder.append(Base64.endsWith(60 - 10, "Brgfaxj} <") + password.toString() + "'");
    if (connectionTimeout == 1000) {
      if (readWriteTimeout != 3000) {
        break label301;
      }
    }
    for (;;)
    {
      return localStringBuilder.toString();localStringBuilder.append(Base64.endsWith(63 * 33, "3thofkpr=") + connectionTimeout); break;
      label301:
      localStringBuilder.append(Base64.endsWith(21 - 26, "w.8?;Thofkpr=") + readWriteTimeout);
    }
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.drivers.SourceControlContext
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol.drivers;

import com.wowza.util.Base64;
import com.wowza.util.JSON;
import com.wowza.util.Unitialized;
import com.wowza.wms.sourcecontrol.ISourceControl;
import com.wowza.wms.sourcecontrol.SourceControlLogging;
import java.net.Authenticator;
import java.net.PasswordAuthentication;

public class SourceControlDriverBase
  extends SourceControlLogging
  implements ISourceControl
{
  private SourceControlContext a = null;
  private String b = null;
  
  public SourceControlContext readSettings(JSON paramJSON)
  {
    SourceControlContext localSourceControlContext = new SourceControlContext();
    localSourceControlContext.loadSettings(paramJSON);
    return localSourceControlContext;
  }
  
  public void setContext(SourceControlContext paramSourceControlContext)
  {
    a = paramSourceControlContext;
  }
  
  public SourceControlContext getContext()
  {
    return a;
  }
  
  protected void setPath(String paramString)
  {
    b = paramString;
  }
  
  public String getPath()
  {
    return b;
  }
  
  protected void authenticate()
  {
    if (a.userName.get(null) != null)
    {
      break label31;
      Authenticator.setDefault(new Authenticator()
      {
        protected PasswordAuthentication getPasswordAuthentication()
        {
          return new PasswordAuthentication((String)auserName.get(null), ((String)apassword.get(null)).toCharArray());
        }
      });
      break label54;
      label31:
      if (!((String)a.userName.get(null)).isEmpty()) {
        break label78;
      }
    }
    label54:
    label78:
    label93:
    for (;;)
    {
      return;
      for (;;)
      {
        if (((String)a.password.get(null)).isEmpty()) {
          break label93;
        }
        break;
        if (a.password.get(null) == null) {
          break label54;
        }
      }
    }
  }
  
  /* Error */
  public SourceControlResponse issueCGI(String arg1)
  {
    // Byte code:
    //   0: new 73	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse
    //   3: dup
    //   4: invokespecial 74	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:<init>	()V
    //   7: astore_2
    //   8: goto +28 -> 36
    //   11: aload_2
    //   12: areturn
    //   13: astore_3
    //   14: aload_0
    //   15: ldc 76
    //   17: sipush 244
    //   20: bipush 71
    //   22: idiv
    //   23: invokestatic 82	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   26: aload_3
    //   27: invokevirtual 86	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:logError	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   30: goto -19 -> 11
    //   33: goto -22 -> 11
    //   36: new 88	java/net/URI
    //   39: dup
    //   40: aload_0
    //   41: getfield 19	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:a	Lcom/wowza/wms/sourcecontrol/drivers/SourceControlContext;
    //   44: getfield 91	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:uri	Lcom/wowza/util/Unitialized;
    //   47: aconst_null
    //   48: invokevirtual 49	com/wowza/util/Unitialized:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   51: checkcast 60	java/lang/String
    //   54: invokespecial 93	java/net/URI:<init>	(Ljava/lang/String;)V
    //   57: astore_3
    //   58: new 95	java/net/URL
    //   61: dup
    //   62: new 97	java/lang/StringBuilder
    //   65: dup
    //   66: invokespecial 98	java/lang/StringBuilder:<init>	()V
    //   69: bipush 59
    //   71: bipush -18
    //   73: swap
    //   74: iadd
    //   75: ldc 100
    //   77: invokestatic 106	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   80: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   83: aload_3
    //   84: invokevirtual 113	java/net/URI:getHost	()Ljava/lang/String;
    //   87: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   90: aload_3
    //   91: invokevirtual 117	java/net/URI:getPort	()I
    //   94: iconst_m1
    //   95: if_icmpne +40 -> 135
    //   98: goto +131 -> 229
    //   101: astore 10
    //   103: goto +163 -> 266
    //   106: aload 9
    //   108: invokevirtual 122	java/io/InputStream:close	()V
    //   111: goto +21 -> 132
    //   114: aload_2
    //   115: iload 8
    //   117: newarray <illegal type>
    //   119: putfield 126	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseData	[B
    //   122: aload 5
    //   124: invokevirtual 132	java/net/HttpURLConnection:getInputStream	()Ljava/io/InputStream;
    //   127: astore 9
    //   129: goto +234 -> 363
    //   132: goto -99 -> 33
    //   135: new 97	java/lang/StringBuilder
    //   138: dup
    //   139: invokespecial 98	java/lang/StringBuilder:<init>	()V
    //   142: ldc -122
    //   144: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   147: aload_3
    //   148: invokevirtual 117	java/net/URI:getPort	()I
    //   151: invokevirtual 137	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
    //   154: invokevirtual 140	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   157: goto +92 -> 249
    //   160: aload_0
    //   161: new 97	java/lang/StringBuilder
    //   164: dup
    //   165: invokespecial 98	java/lang/StringBuilder:<init>	()V
    //   168: ldc -114
    //   170: bipush 109
    //   172: bipush 61
    //   174: iadd
    //   175: invokestatic 82	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   178: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   181: aload_2
    //   182: getfield 146	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseCode	I
    //   185: invokevirtual 137	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
    //   188: sipush 382
    //   191: bipush 113
    //   193: idiv
    //   194: ldc -108
    //   196: invokestatic 106	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   199: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   202: aload 7
    //   204: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   207: invokevirtual 140	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   210: invokevirtual 151	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:logWarn	(Ljava/lang/String;)V
    //   213: goto -180 -> 33
    //   216: aload_2
    //   217: getfield 146	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseCode	I
    //   220: sipush 204
    //   223: if_icmpne -63 -> 160
    //   226: goto +48 -> 274
    //   229: ldc -103
    //   231: goto +18 -> 249
    //   234: aload 5
    //   236: invokevirtual 156	java/net/HttpURLConnection:getContentLength	()I
    //   239: istore 8
    //   241: iload 8
    //   243: ifle -111 -> 132
    //   246: goto -132 -> 114
    //   249: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   252: aload_0
    //   253: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:b	Ljava/lang/String;
    //   256: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   259: aload_1
    //   260: ifnull +76 -> 336
    //   263: goto +66 -> 329
    //   266: aload 9
    //   268: invokevirtual 122	java/io/InputStream:close	()V
    //   271: aload 10
    //   273: athrow
    //   274: aload_0
    //   275: new 97	java/lang/StringBuilder
    //   278: dup
    //   279: invokespecial 98	java/lang/StringBuilder:<init>	()V
    //   282: ldc -98
    //   284: sipush 460
    //   287: bipush 98
    //   289: idiv
    //   290: invokestatic 82	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   293: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   296: aload_2
    //   297: getfield 146	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseCode	I
    //   300: invokevirtual 137	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
    //   303: iconst_2
    //   304: bipush 12
    //   306: iadd
    //   307: ldc -96
    //   309: invokestatic 106	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   312: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   315: aload 7
    //   317: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   320: invokevirtual 140	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   323: invokevirtual 163	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:logInfo	(Ljava/lang/String;)V
    //   326: goto -293 -> 33
    //   329: aload_1
    //   330: invokevirtual 64	java/lang/String:isEmpty	()Z
    //   333: ifeq +8 -> 341
    //   336: ldc -103
    //   338: goto +46 -> 384
    //   341: new 97	java/lang/StringBuilder
    //   344: dup
    //   345: invokespecial 98	java/lang/StringBuilder:<init>	()V
    //   348: ldc -91
    //   350: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   353: aload_1
    //   354: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   357: invokevirtual 140	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   360: goto +24 -> 384
    //   363: aload 9
    //   365: aload_2
    //   366: getfield 126	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseData	[B
    //   369: invokevirtual 169	java/io/InputStream:read	([B)I
    //   372: iconst_m1
    //   373: if_icmpne -267 -> 106
    //   376: aload_2
    //   377: aconst_null
    //   378: putfield 126	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseData	[B
    //   381: goto -275 -> 106
    //   384: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   387: invokevirtual 140	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   390: invokespecial 170	java/net/URL:<init>	(Ljava/lang/String;)V
    //   393: astore 4
    //   395: aload_0
    //   396: new 97	java/lang/StringBuilder
    //   399: dup
    //   400: invokespecial 98	java/lang/StringBuilder:<init>	()V
    //   403: ldc -84
    //   405: bipush 33
    //   407: bipush 59
    //   409: imul
    //   410: invokestatic 82	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   413: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   416: aload 4
    //   418: invokevirtual 173	java/net/URL:toString	()Ljava/lang/String;
    //   421: invokevirtual 110	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   424: invokevirtual 140	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   427: invokevirtual 176	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:logDebug	(Ljava/lang/String;)V
    //   430: aload_0
    //   431: invokevirtual 178	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:authenticate	()V
    //   434: aload 4
    //   436: invokevirtual 182	java/net/URL:openConnection	()Ljava/net/URLConnection;
    //   439: checkcast 128	java/net/HttpURLConnection
    //   442: astore 5
    //   444: aload 5
    //   446: iconst_1
    //   447: invokevirtual 186	java/net/HttpURLConnection:setDoInput	(Z)V
    //   450: aload 5
    //   452: iconst_0
    //   453: invokevirtual 189	java/net/HttpURLConnection:setDoOutput	(Z)V
    //   456: aload 5
    //   458: iconst_0
    //   459: invokevirtual 192	java/net/HttpURLConnection:setUseCaches	(Z)V
    //   462: aload 5
    //   464: aload_0
    //   465: getfield 19	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:a	Lcom/wowza/wms/sourcecontrol/drivers/SourceControlContext;
    //   468: getfield 195	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:connectionTimeout	I
    //   471: invokevirtual 199	java/net/HttpURLConnection:setConnectTimeout	(I)V
    //   474: aload 5
    //   476: aload_0
    //   477: getfield 19	com/wowza/wms/sourcecontrol/drivers/SourceControlDriverBase:a	Lcom/wowza/wms/sourcecontrol/drivers/SourceControlContext;
    //   480: getfield 202	com/wowza/wms/sourcecontrol/drivers/SourceControlContext:readWriteTimeout	I
    //   483: invokevirtual 205	java/net/HttpURLConnection:setReadTimeout	(I)V
    //   486: aload 5
    //   488: invokevirtual 208	java/net/HttpURLConnection:connect	()V
    //   491: aconst_null
    //   492: astore 6
    //   494: aload_2
    //   495: aload 5
    //   497: invokevirtual 211	java/net/HttpURLConnection:getResponseCode	()I
    //   500: putfield 146	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseCode	I
    //   503: aload 5
    //   505: invokevirtual 214	java/net/HttpURLConnection:getResponseMessage	()Ljava/lang/String;
    //   508: astore 7
    //   510: aload_2
    //   511: getfield 146	com/wowza/wms/sourcecontrol/drivers/SourceControlResponse:responseCode	I
    //   514: sipush 200
    //   517: if_icmpne -301 -> 216
    //   520: goto -286 -> 234
    // Line number table:
    //   Java source line #56	-> byte code offset #0
    //   Java source line #162	-> byte code offset #11
    //   Java source line #157	-> byte code offset #13
    //   Java source line #159	-> byte code offset #14
    //   Java source line #160	-> byte code offset #33
    //   Java source line #58	-> byte code offset #36
    //   Java source line #59	-> byte code offset #58
    //   Java source line #125	-> byte code offset #101
    //   Java source line #126	-> byte code offset #111
    //   Java source line #119	-> byte code offset #114
    //   Java source line #120	-> byte code offset #122
    //   Java source line #152	-> byte code offset #132
    //   Java source line #59	-> byte code offset #135
    //   Java source line #156	-> byte code offset #160
    //   Java source line #153	-> byte code offset #216
    //   Java source line #59	-> byte code offset #229
    //   Java source line #116	-> byte code offset #234
    //   Java source line #117	-> byte code offset #241
    //   Java source line #59	-> byte code offset #249
    //   Java source line #125	-> byte code offset #266
    //   Java source line #154	-> byte code offset #274
    //   Java source line #59	-> byte code offset #329
    //   Java source line #122	-> byte code offset #363
    //   Java source line #123	-> byte code offset #376
    //   Java source line #59	-> byte code offset #384
    //   Java source line #60	-> byte code offset #395
    //   Java source line #62	-> byte code offset #430
    //   Java source line #102	-> byte code offset #434
    //   Java source line #103	-> byte code offset #444
    //   Java source line #104	-> byte code offset #450
    //   Java source line #105	-> byte code offset #456
    //   Java source line #106	-> byte code offset #462
    //   Java source line #107	-> byte code offset #474
    //   Java source line #108	-> byte code offset #486
    //   Java source line #110	-> byte code offset #491
    //   Java source line #112	-> byte code offset #494
    //   Java source line #113	-> byte code offset #503
    //   Java source line #114	-> byte code offset #510
    // Exception table:
    //   from	to	target	type
    //   36	523	13	java/lang/Exception
    //   101	106	101	finally
    //   363	384	101	finally
  }
  
  public SourceInformation getSouceInformation()
  {
    SourceInformation localSourceInformation = new SourceInformation();
    model = Base64.endsWith(91 + -58, "Tlhjjhpf");
    manufacturuer = JSON.copyValueOf("Nrvppwo", 80 + 75);
    model = JSON.copyValueOf("\026*.((?'", 113 + 114);
    return localSourceInformation;
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.drivers.SourceControlDriverBase
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol.drivers;

import com.wowza.util.Unitialized;
import java.net.Authenticator;
import java.net.PasswordAuthentication;

class SourceControlDriverBase$1
  extends Authenticator
{
  SourceControlDriverBase$1(SourceControlDriverBase paramSourceControlDriverBase) {}
  
  protected PasswordAuthentication getPasswordAuthentication()
  {
    return new PasswordAuthentication((String)aa).userName.get(null), ((String)aa).password.get(null)).toCharArray());
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.drivers.SourceControlDriverBase.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol.drivers;

import com.wowza.util.Base64;
import com.wowza.util.JSON;
import com.wowza.wms.application.WMSProperties;
import java.util.Iterator;
import java.util.Set;

public class SourceControlDriverItem
{
  private String a = null;
  private String b = "";
  private String c = null;
  private WMSProperties d = new WMSProperties();
  
  public SourceControlDriverItem(String paramString1, String paramString2)
  {
    a = paramString1;
    c = paramString2;
  }
  
  public String getBaseClass()
  {
    return c;
  }
  
  public void setBaseClass(String paramString)
  {
    c = paramString;
  }
  
  public String getName()
  {
    return a;
  }
  
  public void setName(String paramString)
  {
    a = paramString;
  }
  
  public void setProperty(String paramString1, String paramString2)
  {
    d.setProperty(paramString1, paramString2);
  }
  
  public void clearProperty(String paramString)
  {
    d.remove(paramString);
  }
  
  public String getProperty(String paramString)
  {
    return d.getPropertyStr(paramString);
  }
  
  public WMSProperties getProperties()
  {
    return d;
  }
  
  public String getDescription()
  {
    return b;
  }
  
  public void setDescription(String paramString)
  {
    b = paramString;
  }
  
  public String toString()
  {
    String str1 = "{";
    
    str1 = str1 + Base64.endsWith(-59 - -43, "\003>'!70\02586-(40\031,6vdp>") + a;
    str1 = str1 + Base64.endsWith(9 * 43, "#``udz`zeb`2") + b;
    str1 = str1 + JSON.copyValueOf("y8:/8\0353!21~", 61 - -28) + c;
    str1 = str1 + JSON.copyValueOf("s$'9'=+.29.c$", 3 + 80);
    Iterator localIterator = d.keySet().iterator();
    String str2 = "";
    break label250;
    str1 = str1 + str2 + Base64.endsWith('?' / 95, "~y");
    
    return str1;
    for (;;)
    {
      label189:
      String str3;
      str2 = str2 + str3 + "=" + d.get(str3);
      label250:
      for (;; !localIterator.hasNext())
      {
        str3 = (String)localIterator.next();
        if (str2.length() <= 0) {
          break label189;
        }
        break label262;
      }
      label262:
      str2 = str2 + " ";
    }
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.drivers.SourceControlDriverItem
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol.drivers;

public class SourceControlResponse
{
  public int responseCode = -1;
  public byte[] responseData = null;
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.drivers.SourceControlResponse
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol.drivers;

import com.wowza.wms.rest.sourcecontrol.SourceControlFeature;
import java.util.ArrayList;
import java.util.List;

public class SourceInformation
{
  public String manufacturuer;
  public String model;
  public String firmware;
  public List<SourceControlFeature> supportedFeatures = new ArrayList();
  
  /* Error */
  public boolean canPanTilt()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   4: getstatic 29	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltUp	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   7: invokeinterface 35 2 0
    //   12: ifne +6 -> 18
    //   15: goto +7 -> 22
    //   18: iconst_1
    //   19: goto +75 -> 94
    //   22: aload_0
    //   23: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   26: getstatic 38	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltUpRight	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   29: invokeinterface 35 2 0
    //   34: ifne -16 -> 18
    //   37: goto +39 -> 76
    //   40: aload_0
    //   41: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   44: getstatic 41	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltUpLeft	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   47: invokeinterface 35 2 0
    //   52: ifeq +97 -> 149
    //   55: goto -37 -> 18
    //   58: aload_0
    //   59: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   62: getstatic 44	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltDownRight	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   65: invokeinterface 35 2 0
    //   70: ifne -52 -> 18
    //   73: goto +58 -> 131
    //   76: aload_0
    //   77: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   80: getstatic 47	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltRight	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   83: invokeinterface 35 2 0
    //   88: ifne -70 -> 18
    //   91: goto -33 -> 58
    //   94: ireturn
    //   95: aload_0
    //   96: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   99: getstatic 50	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltLeft	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   102: invokeinterface 35 2 0
    //   107: ifne -89 -> 18
    //   110: goto -70 -> 40
    //   113: aload_0
    //   114: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   117: getstatic 53	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltDownLeft	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   120: invokeinterface 35 2 0
    //   125: ifne -107 -> 18
    //   128: goto -33 -> 95
    //   131: aload_0
    //   132: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   135: getstatic 56	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:PanTiltDown	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   138: invokeinterface 35 2 0
    //   143: ifne -125 -> 18
    //   146: goto -33 -> 113
    //   149: iconst_0
    //   150: goto -56 -> 94
    // Line number table:
    //   Java source line #16	-> byte code offset #0
  }
  
  public boolean canZoom()
  {
    for (;;)
    {
      return supportedFeatures.contains(SourceControlFeature.ZoomIn);
      if (!supportedFeatures.contains(SourceControlFeature.ZoomOut)) {}
    }
  }
  
  /* Error */
  public boolean canVolumeControl()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   4: getstatic 67	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:VolumeUp	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   7: invokeinterface 35 2 0
    //   12: ifne +29 -> 41
    //   15: goto +30 -> 45
    //   18: aload_0
    //   19: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   22: getstatic 70	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:VolumeMute	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   25: invokeinterface 35 2 0
    //   30: ifeq +7 -> 37
    //   33: goto +8 -> 41
    //   36: ireturn
    //   37: iconst_0
    //   38: goto -2 -> 36
    //   41: iconst_1
    //   42: goto -6 -> 36
    //   45: aload_0
    //   46: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   49: getstatic 73	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:VolumeDown	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   52: invokeinterface 35 2 0
    //   57: ifne -16 -> 41
    //   60: goto -42 -> 18
    // Line number table:
    //   Java source line #34	-> byte code offset #0
  }
  
  /* Error */
  public boolean canStreamControl()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   4: getstatic 77	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:StartStreaming	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   7: invokeinterface 35 2 0
    //   12: ifne +11 -> 23
    //   15: goto +12 -> 27
    //   18: ireturn
    //   19: iconst_0
    //   20: goto -2 -> 18
    //   23: iconst_1
    //   24: goto -6 -> 18
    //   27: aload_0
    //   28: getfield 21	com/wowza/wms/sourcecontrol/drivers/SourceInformation:supportedFeatures	Ljava/util/List;
    //   31: getstatic 80	com/wowza/wms/rest/sourcecontrol/SourceControlFeature:StopStreaming	Lcom/wowza/wms/rest/sourcecontrol/SourceControlFeature;
    //   34: invokeinterface 35 2 0
    //   39: ifeq -20 -> 19
    //   42: goto -19 -> 23
    // Line number table:
    //   Java source line #41	-> byte code offset #0
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.sourcecontrol.drivers.SourceInformation
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.sourcecontrol.drivers.cgi.sony;

import com.wowza.util.Base64;
import com.wowza.util.JSON;
import com.wowza.wms.rest.sourcecontrol.SourceControlFeature;
import com.wowza.wms.sourcecontrol.ISourceControlCamera;
import com.wowza.wms.sourcecontrol.drivers.SourceControlDriverBase;
import com.wowza.wms.sourcecontrol.drivers.SourceControlResponse;
import com.wowza.wms.sourcecontrol.drivers.SourceInformation;
import java.util.List;

public class SonyDriver
  extends SourceControlDriverBase
  implements ISourceControlCamera
{
  /* Error */
  public boolean panTiltStep(SourceControlFeature arg1)
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore_2
    //   2: aload_0
    //   3: iconst_4
    //   4: bipush -50
    //   6: isub
    //   7: ldc 17
    //   9: invokestatic 23	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   12: invokevirtual 27	com/wowza/wms/sourcecontrol/drivers/cgi/sony/SonyDriver:setPath	(Ljava/lang/String;)V
    //   15: getstatic 31	com/wowza/wms/sourcecontrol/drivers/cgi/sony/SonyDriver$1:a
1 2

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd