wms-rest

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import java.util.HashMap;
import java.util.Map;
import org.restlet.data.Method;
import org.restlet.representation.Representation;
import org.restlet.resource.ResourceException;
import org.restlet.resource.ServerResource;
import org.restlet.security.User;

public class ActionBase
  extends ServerResource
{
  private static final Method[] a = { Method.OPTIONS, Method.PUT };
  private static final String b = Method.OPTIONS.toString() + "," + Method.PUT.toString();
  protected User user;
  protected String uri;
  @JsonProperty("serverName")
  @XStreamAsAttribute
  @WMSPathVariable(description="Reserved for future use")
  protected String serverName;
  @WMSPathVariable(description="The action which should be performed by the server")
  protected String action;
  protected Object actionRedirectObject = null;
  public static boolean inTradeShowMode = false;
  
  public User getUser()
  {
    return user;
  }
  
  public void setUser(User paramUser)
  {
    user = paramUser;
  }
  
  /* Error */
  public static WMSResponse execAction(String paramString, WMSClientSecurity paramWMSClientSecurity)
  {
    // Byte code:
    //   0: new 42	com/wowza/wms/rest/WMSResponse
    //   3: dup
    //   4: invokespecial 43	com/wowza/wms/rest/WMSResponse:<init>	()V
    //   7: astore_2
    //   8: aload_0
    //   9: invokevirtual 49	java/lang/String:toLowerCase	()Ljava/lang/String;
    //   12: ldc 51
    //   14: bipush -3
    //   16: bipush 39
    //   18: isub
    //   19: invokestatic 57	com/wowza/wms/rest/Utils:toString	(Ljava/lang/String;I)Ljava/lang/String;
    //   22: invokevirtual 61	java/lang/String:startsWith	(Ljava/lang/String;)Z
    //   25: ifne +55 -> 80
    //   28: goto +194 -> 222
    //   31: astore 4
    //   33: aload_2
    //   34: aload 4
    //   36: invokevirtual 64	java/io/IOException:getMessage	()Ljava/lang/String;
    //   39: invokevirtual 68	com/wowza/wms/rest/WMSResponse:setMessage	(Ljava/lang/String;)V
    //   42: new 70	java/lang/StringBuilder
    //   45: dup
    //   46: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   49: bipush 49
    //   51: bipush 93
    //   53: iadd
    //   54: ldc 73
    //   56: invokestatic 78	com/wowza/wms/rest/Severity:startsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   59: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   62: aload_0
    //   63: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   66: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   69: aload 4
    //   71: invokestatic 90	com/wowza/wms/rest/ConfigBase:logWarn	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   74: goto +155 -> 229
    //   77: goto +152 -> 229
    //   80: new 92	com/wowza/wms/rest/WMSClientResource
    //   83: dup
    //   84: aload_0
    //   85: aload_1
    //   86: invokespecial 95	com/wowza/wms/rest/WMSClientResource:<init>	(Ljava/lang/String;Lcom/wowza/wms/rest/WMSClientSecurity;)V
    //   89: astore_3
    //   90: aload_3
    //   91: getstatic 101	org/restlet/data/Method:PUT	Lorg/restlet/data/Method;
    //   94: invokevirtual 105	com/wowza/wms/rest/WMSClientResource:setMethod	(Lorg/restlet/data/Method;)V
    //   97: aload_3
    //   98: new 86	com/wowza/wms/rest/ConfigBase
    //   101: dup
    //   102: invokespecial 106	com/wowza/wms/rest/ConfigBase:<init>	()V
    //   105: invokevirtual 110	com/wowza/wms/rest/WMSClientResource:put	(Ljava/lang/Object;)Lorg/restlet/representation/Representation;
    //   108: astore 4
    //   110: aload 4
    //   112: ifnull -35 -> 77
    //   115: goto +63 -> 178
    //   118: new 112	org/restlet/ext/xstream/XstreamRepresentation
    //   121: dup
    //   122: aload 4
    //   124: ldc 42
    //   126: invokespecial 115	org/restlet/ext/xstream/XstreamRepresentation:<init>	(Lorg/restlet/representation/Representation;Ljava/lang/Class;)V
    //   129: astore 5
    //   131: aload 5
    //   133: invokevirtual 119	org/restlet/ext/xstream/XstreamRepresentation:getXstream	()Lcom/thoughtworks/xstream/XStream;
    //   136: ldc 42
    //   138: invokevirtual 125	com/thoughtworks/xstream/XStream:allowTypeHierarchy	(Ljava/lang/Class;)V
    //   141: aload 5
    //   143: invokevirtual 129	org/restlet/ext/xstream/XstreamRepresentation:getObject	()Ljava/lang/Object;
    //   146: checkcast 42	com/wowza/wms/rest/WMSResponse
    //   149: astore_2
    //   150: goto -73 -> 77
    //   153: new 131	org/restlet/ext/jackson/JacksonRepresentation
    //   156: dup
    //   157: aload 4
    //   159: ldc 42
    //   161: invokespecial 132	org/restlet/ext/jackson/JacksonRepresentation:<init>	(Lorg/restlet/representation/Representation;Ljava/lang/Class;)V
    //   164: astore 5
    //   166: aload 5
    //   168: invokevirtual 133	org/restlet/ext/jackson/JacksonRepresentation:getObject	()Ljava/lang/Object;
    //   171: checkcast 42	com/wowza/wms/rest/WMSResponse
    //   174: astore_2
    //   175: goto -98 -> 77
    //   178: aload 4
    //   180: invokevirtual 139	org/restlet/representation/Representation:getMediaType	()Lorg/restlet/data/MediaType;
    //   183: getstatic 145	org/restlet/data/MediaType:APPLICATION_XML	Lorg/restlet/data/MediaType;
    //   186: invokevirtual 149	org/restlet/data/MediaType:equals	(Ljava/lang/Object;)Z
    //   189: ifeq +6 -> 195
    //   192: goto -74 -> 118
    //   195: aload 4
    //   197: invokevirtual 139	org/restlet/representation/Representation:getMediaType	()Lorg/restlet/data/MediaType;
    //   200: getstatic 152	org/restlet/data/MediaType:APPLICATION_JSON	Lorg/restlet/data/MediaType;
    //   203: invokevirtual 149	org/restlet/data/MediaType:equals	(Ljava/lang/Object;)Z
    //   206: ifeq -129 -> 77
    //   209: goto -56 -> 153
    //   212: aload_1
    //   213: invokevirtual 157	com/wowza/wms/rest/WMSClientSecurity:getServerURL	()Ljava/lang/String;
    //   216: ifnull -136 -> 80
    //   219: goto +12 -> 231
    //   222: aload_1
    //   223: ifnull -143 -> 80
    //   226: goto -14 -> 212
    //   229: aload_2
    //   230: areturn
    //   231: new 70	java/lang/StringBuilder
    //   234: dup
    //   235: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   238: aload_1
    //   239: invokevirtual 157	com/wowza/wms/rest/WMSClientSecurity:getServerURL	()Ljava/lang/String;
    //   242: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   245: aload_0
    //   246: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   249: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   252: astore_0
    //   253: goto -173 -> 80
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	256	0	paramString	String
    //   0	256	1	paramWMSClientSecurity	WMSClientSecurity
    //   7	223	2	localWMSResponse	WMSResponse
    //   89	9	3	localWMSClientResource	WMSClientResource
    //   31	39	4	localIOException	java.io.IOException
    //   108	88	4	localRepresentation	Representation
    //   129	38	5	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   80	212	31	java/io/IOException
  }
  
  protected void doInit()
    throws ResourceException
  {
    action = ((String)getRequestAttributes().get(Utils.toString("desafd", '?' / 46)));
    ConfigBase.getUserthreadlocal().set(new HashMap());
  }
  
  protected void doRelease()
    throws ResourceException
  {
    ConfigBase.getUserthreadlocal().remove();
  }
  
  public Representation put(Representation paramRepresentation)
  {
    return get();
  }
  
  /* Error */
  public Representation get()
  {
    // Byte code:
    //   0: new 70	java/lang/StringBuilder
    //   3: dup
    //   4: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   7: bipush 57
    //   9: bipush 43
    //   11: imul
    //   12: ldc -55
    //   14: invokestatic 78	com/wowza/wms/rest/Severity:startsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   17: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   20: aload_0
    //   21: invokevirtual 205	com/wowza/wms/rest/ActionBase:getRequest	()Lorg/restlet/Request;
    //   24: invokevirtual 211	org/restlet/Request:getResourceRef	()Lorg/restlet/data/Reference;
    //   27: invokevirtual 214	org/restlet/data/Reference:toString	()Ljava/lang/String;
    //   30: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   33: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   36: invokestatic 217	com/wowza/wms/rest/ConfigBase:logDebug	(Ljava/lang/String;)V
    //   39: aconst_null
    //   40: astore_1
    //   41: aload_0
    //   42: invokevirtual 205	com/wowza/wms/rest/ActionBase:getRequest	()Lorg/restlet/Request;
    //   45: astore_2
    //   46: aload_0
    //   47: aload_2
    //   48: invokevirtual 221	org/restlet/Request:getClientInfo	()Lorg/restlet/data/ClientInfo;
    //   51: invokevirtual 225	org/restlet/data/ClientInfo:getUser	()Lorg/restlet/security/User;
    //   54: putfield 34	com/wowza/wms/rest/ActionBase:user	Lorg/restlet/security/User;
    //   57: aload_0
    //   58: aload_2
    //   59: invokevirtual 211	org/restlet/Request:getResourceRef	()Lorg/restlet/data/Reference;
    //   62: invokevirtual 214	org/restlet/data/Reference:toString	()Ljava/lang/String;
    //   65: putfield 227	com/wowza/wms/rest/ActionBase:uri	Ljava/lang/String;
    //   68: aload_0
    //   69: invokevirtual 205	com/wowza/wms/rest/ActionBase:getRequest	()Lorg/restlet/Request;
    //   72: invokevirtual 211	org/restlet/Request:getResourceRef	()Lorg/restlet/data/Reference;
    //   75: astore_3
    //   76: aload_3
    //   77: invokevirtual 230	org/restlet/data/Reference:getQuery	()Ljava/lang/String;
    //   80: astore 4
    //   82: new 182	java/util/HashMap
    //   85: dup
    //   86: invokespecial 183	java/util/HashMap:<init>	()V
    //   89: astore 5
    //   91: aload 4
    //   93: ifnull +210 -> 303
    //   96: goto +182 -> 278
    //   99: aload_1
    //   100: areturn
    //   101: aload 5
    //   103: aload 11
    //   105: iconst_0
    //   106: aaload
    //   107: aload 11
    //   109: iconst_1
    //   110: aaload
    //   111: invokeinterface 233 3 0
    //   116: pop
    //   117: goto +607 -> 724
    //   120: astore 7
    //   122: aload 6
    //   124: aload 7
    //   126: invokevirtual 64	java/io/IOException:getMessage	()Ljava/lang/String;
    //   129: invokevirtual 68	com/wowza/wms/rest/WMSResponse:setMessage	(Ljava/lang/String;)V
    //   132: aload 6
    //   134: iconst_0
    //   135: invokevirtual 237	com/wowza/wms/rest/WMSResponse:setSuccess	(Z)V
    //   138: new 70	java/lang/StringBuilder
    //   141: dup
    //   142: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   145: ldc -17
    //   147: bipush 45
    //   149: bipush 60
    //   151: isub
    //   152: invokestatic 57	com/wowza/wms/rest/Utils:toString	(Ljava/lang/String;I)Ljava/lang/String;
    //   155: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   158: aload_0
    //   159: getfield 227	com/wowza/wms/rest/ActionBase:uri	Ljava/lang/String;
    //   162: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   165: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   168: aload 7
    //   170: invokestatic 90	com/wowza/wms/rest/ConfigBase:logWarn	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   173: goto -74 -> 99
    //   176: aload 6
    //   178: iconst_1
    //   179: putfield 242	com/wowza/wms/rest/WMSResponse:success	Z
    //   182: aload 6
    //   184: ldc -12
    //   186: bipush 21
    //   188: bipush 29
    //   190: imul
    //   191: invokestatic 57	com/wowza/wms/rest/Utils:toString	(Ljava/lang/String;I)Ljava/lang/String;
    //   194: putfield 247	com/wowza/wms/rest/WMSResponse:message	Ljava/lang/String;
    //   197: new 70	java/lang/StringBuilder
    //   200: dup
    //   201: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   204: ldc -7
    //   206: bipush 23
    //   208: bipush 11
    //   210: imul
    //   211: invokestatic 57	com/wowza/wms/rest/Utils:toString	(Ljava/lang/String;I)Ljava/lang/String;
    //   214: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   217: aload_0
    //   218: invokevirtual 253	java/lang/Object:getClass	()Ljava/lang/Class;
    //   221: invokevirtual 258	java/lang/Class:getSimpleName	()Ljava/lang/String;
    //   224: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   227: ldc_w 260
    //   230: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   233: aload_0
    //   234: getfield 176	com/wowza/wms/rest/ActionBase:action	Ljava/lang/String;
    //   237: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   240: ldc_w 262
    //   243: bipush 57
    //   245: bipush 47
    //   247: isub
    //   248: invokestatic 57	com/wowza/wms/rest/Utils:toString	(Ljava/lang/String;I)Ljava/lang/String;
    //   251: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   254: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   257: invokestatic 264	com/wowza/wms/rest/ConfigBase:logWarn	(Ljava/lang/String;)V
    //   260: aload 6
    //   262: ifnull -163 -> 99
    //   265: goto +270 -> 535
    //   268: iload 9
    //   270: iload 8
    //   272: if_icmpge +31 -> 303
    //   275: goto +154 -> 429
    //   278: aload 4
    //   280: ldc_w 266
    //   283: invokevirtual 270	java/lang/String:split	(Ljava/lang/String;)[Ljava/lang/String;
    //   286: astore 6
    //   288: aload 6
    //   290: astore 7
    //   292: aload 7
    //   294: arraylength
    //   295: istore 8
    //   297: iconst_0
    //   298: istore 9
    //   300: goto -32 -> 268
    //   303: aload_0
    //   304: getstatic 276	org/restlet/data/Status:CLIENT_ERROR_NOT_FOUND	Lorg/restlet/data/Status;
    //   307: invokevirtual 280	com/wowza/wms/rest/ActionBase:setStatus	(Lorg/restlet/data/Status;)V
    //   310: new 42	com/wowza/wms/rest/WMSResponse
    //   313: dup
    //   314: invokespecial 43	com/wowza/wms/rest/WMSResponse:<init>	()V
    //   317: astore 6
    //   319: getstatic 282	com/wowza/wms/rest/ActionBase:inTradeShowMode	Z
    //   322: ifeq +9 -> 331
    //   325: goto -149 -> 176
    //   328: goto -68 -> 260
    //   331: aload_0
    //   332: getfield 30	com/wowza/wms/rest/ActionBase:actionRedirectObject	Ljava/lang/Object;
    //   335: ifnonnull +6 -> 341
    //   338: goto +83 -> 421
    //   341: aload_0
    //   342: getfield 30	com/wowza/wms/rest/ActionBase:actionRedirectObject	Ljava/lang/Object;
    //   345: invokevirtual 253	java/lang/Object:getClass	()Ljava/lang/Class;
    //   348: new 70	java/lang/StringBuilder
    //   351: dup
    //   352: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   355: aload_0
    //   356: getfield 176	com/wowza/wms/rest/ActionBase:action	Ljava/lang/String;
    //   359: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   362: sipush 881
    //   365: sipush 142
    //   368: idiv
    //   369: ldc_w 284
    //   372: invokestatic 78	com/wowza/wms/rest/Severity:startsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   375: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   378: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   381: iconst_1
    //   382: anewarray 255	java/lang/Class
    //   385: dup
    //   386: iconst_0
    //   387: ldc 45
    //   389: aastore
    //   390: invokevirtual 288	java/lang/Class:getMethod	(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
    //   393: astore 7
    //   395: aload 7
    //   397: aload_0
    //   398: getfield 30	com/wowza/wms/rest/ActionBase:actionRedirectObject	Ljava/lang/Object;
    //   401: iconst_1
    //   402: anewarray 159	java/lang/Object
    //   405: dup
    //   406: iconst_0
    //   407: aload 4
    //   409: aastore
    //   410: invokevirtual 294	java/lang/reflect/Method:invoke	(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    //   413: checkcast 42	com/wowza/wms/rest/WMSResponse
    //   416: astore 6
    //   418: goto -90 -> 328
    //   421: aload_0
    //   422: dup
    //   423: putfield 30	com/wowza/wms/rest/ActionBase:actionRedirectObject	Ljava/lang/Object;
    //   426: goto -85 -> 341
    //   429: aload 7
    //   431: iload 9
    //   433: aaload
    //   434: astore 10
    //   436: aload 10
    //   438: ldc_w 296
    //   441: invokevirtual 270	java/lang/String:split	(Ljava/lang/String;)[Ljava/lang/String;
    //   444: astore 11
    //   446: aload 11
    //   448: arraylength
    //   449: iconst_2
    //   450: if_icmpne +274 -> 724
    //   453: goto -352 -> 101
    //   456: goto -357 -> 99
    //   459: astore 7
    //   461: new 70	java/lang/StringBuilder
    //   464: dup
    //   465: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   468: bipush 59
    //   470: bipush 31
    //   472: imul
    //   473: ldc_w 298
    //   476: invokestatic 78	com/wowza/wms/rest/Severity:startsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   479: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   482: aload_0
    //   483: getfield 176	com/wowza/wms/rest/ActionBase:action	Ljava/lang/String;
    //   486: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   489: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   492: invokestatic 301	com/wowza/wms/rest/ConfigBase:logError	(Ljava/lang/String;)V
    //   495: aload 6
    //   497: new 70	java/lang/StringBuilder
    //   500: dup
    //   501: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   504: sipush 550
    //   507: bipush 87
    //   509: idiv
    //   510: ldc_w 303
    //   513: invokestatic 78	com/wowza/wms/rest/Severity:startsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   516: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   519: aload_0
    //   520: getfield 176	com/wowza/wms/rest/ActionBase:action	Ljava/lang/String;
    //   523: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   526: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   529: invokevirtual 68	com/wowza/wms/rest/WMSResponse:setMessage	(Ljava/lang/String;)V
    //   532: goto -272 -> 260
    //   535: aload_0
    //   536: invokevirtual 205	com/wowza/wms/rest/ActionBase:getRequest	()Lorg/restlet/Request;
    //   539: invokevirtual 221	org/restlet/Request:getClientInfo	()Lorg/restlet/data/ClientInfo;
    //   542: getstatic 307	com/wowza/wms/rest/ConfigBase:supportedMediaTypes	Ljava/util/List;
    //   545: invokevirtual 311	org/restlet/data/ClientInfo:getPreferredMediaType	(Ljava/util/List;)Lorg/restlet/data/MediaType;
    //   548: astore 7
    //   550: aload 7
    //   552: getstatic 145	org/restlet/data/MediaType:APPLICATION_XML	Lorg/restlet/data/MediaType;
    //   555: if_acmpne +78 -> 633
    //   558: goto +86 -> 644
    //   561: aload_0
    //   562: getstatic 314	org/restlet/data/Status:CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE	Lorg/restlet/data/Status;
    //   565: invokevirtual 280	com/wowza/wms/rest/ActionBase:setStatus	(Lorg/restlet/data/Status;)V
    //   568: new 70	java/lang/StringBuilder
    //   571: dup
    //   572: invokespecial 71	java/lang/StringBuilder:<init>	()V
    //   575: iconst_3
    //   576: bipush 49
    //   578: imul
    //   579: ldc_w 316
    //   582: invokestatic 78	com/wowza/wms/rest/Severity:startsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   585: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   588: aload 7
    //   590: invokevirtual 317	org/restlet/data/MediaType:toString	()Ljava/lang/String;
    //   593: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   596: ldc_w 319
    //   599: sipush 514
    //   602: bipush 91
    //   604: idiv
    //   605: invokestatic 57	com/wowza/wms/rest/Utils:toString	(Ljava/lang/String;I)Ljava/lang/String;
    //   608: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   611: aload_0
    //   612: invokevirtual 205	com/wowza/wms/rest/ActionBase:getRequest	()Lorg/restlet/Request;
    //   615: invokevirtual 211	org/restlet/Request:getResourceRef	()Lorg/restlet/data/Reference;
    //   618: invokevirtual 214	org/restlet/data/Reference:toString	()Ljava/lang/String;
    //   621: invokevirtual 82	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   624: invokevirtual 84	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   627: invokestatic 264	com/wowza/wms/rest/ConfigBase:logWarn	(Ljava/lang/String;)V
    //   630: goto +45 -> 675
    //   633: aload 7
    //   635: getstatic 152	org/restlet/data/MediaType:APPLICATION_JSON	Lorg/restlet/data/MediaType;
    //   638: if_acmpne -77 -> 561
    //   641: goto +63 -> 704
    //   644: new 112	org/restlet/ext/xstream/XstreamRepresentation
    //   647: dup
    //   648: aload 6
    //   650: invokespecial 321	org/restlet/ext/xstream/XstreamRepresentation:<init>	(Ljava/lang/Object;)V
    //   653: astore_1
    //   654: aload_1
    //   655: checkcast 112	org/restlet/ext/xstream/XstreamRepresentation
    //   658: invokevirtual 119	org/restlet/ext/xstream/XstreamRepresentation:getXstream	()Lcom/thoughtworks/xstream/XStream;
    //   661: astore 8
    //   663: aload 8
    //   665: invokestatic 325	com/wowza/wms/rest/ConfigBase:fixXStream	(Lcom/thoughtworks/xstream/XStream;)V
    //   668: aload_0
    //   669: getstatic 328	org/restlet/data/Status:SUCCESS_OK	Lorg/restlet/data/Status;
    //   672: invokevirtual 280	com/wowza/wms/rest/ActionBase:setStatus	(Lorg/restlet/data/Status;)V
    //   675: invokestatic 332	com/wowza/wms/rest/ConfigBase:getMessageCapture	()Lcom/wowza/wms/rest/MessageCapture;
    //   678: aload_2
    //   679: aload 6
    //   681: aload_0
    //   682: invokevirtual 336	com/wowza/wms/rest/ActionBase:getResponse	()Lorg/restlet/Response;
    //   685: aload_1
    //   686: sipush 198
    //   689: bipush 59
    //   691: idiv
    //   692: ldc_w 338
    //   695: invokestatic 78	com/wowza/wms/rest/Severity:startsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   698: invokevirtual 344	com/wowza/wms/rest/MessageCapture:writeMsg	(Lorg/restlet/Request;Ljava/lang/Object;Lorg/restlet/Response;Lorg/restlet/representation/Representation;Ljava/lang/String;)V
    //   701: goto -245 -> 456
    //   704: new 131	org/restlet/ext/jackson/JacksonRepresentation
    //   707: dup
    //   708: aload 6
    //   710: invokespecial 345	org/restlet/ext/jackson/JacksonRepresentation:<init>	(Ljava/lang/Object;)V
    //   713: astore_1
    //   714: aload_0
    //   715: getstatic 328	org/restlet/data/Status:SUCCESS_OK	Lorg/restlet/data/Status;
    //   718: invokevirtual 280	com/wowza/wms/rest/ActionBase:setStatus	(Lorg/restlet/data/Status;)V
    //   721: goto -46 -> 675
    //   724: iinc 9 1
    //   727: goto -459 -> 268
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	730	0	this	ActionBase
    //   40	674	1	localObject1	Object
    //   45	634	2	localRequest	org.restlet.Request
    //   75	2	3	localReference	org.restlet.data.Reference
    //   80	328	4	str	String
    //   89	13	5	localHashMap	HashMap
    //   122	587	6	localObject2	Object
    //   120	49	7	localIOException	java.io.IOException
    //   290	140	7	localObject3	Object
    //   459	1	7	localException	Exception
    //   548	86	7	localMediaType	org.restlet.data.MediaType
    //   270	26	8	i	int
    //   661	3	8	localXStream	com.thoughtworks.xstream.XStream
    //   268	457	9	j	int
    //   434	3	10	localObject4	Object
    //   103	344	11	arrayOfString	String[]
    // Exception table:
    //   from	to	target	type
    //   535	724	120	java/io/IOException
    //   331	429	459	java/lang/Exception
  }
}

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

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE, getterVisibility=JsonAutoDetect.Visibility.NONE, isGetterVisibility=JsonAutoDetect.Visibility.NONE, setterVisibility=JsonAutoDetect.Visibility.NONE, creatorVisibility=JsonAutoDetect.Visibility.NONE)
@XStreamAlias("AdvancedSetting")
@WMSFilterWhiteSpace
public class AdvancedSetting
{
  @XStreamOmitField
  protected boolean removed;
  @XStreamOmitField
  public boolean uiBooleanValue = false;
  @JsonProperty("enabled")
  @XStreamAsAttribute
  public boolean enabled;
  @JsonProperty("canRemove")
  @XStreamAsAttribute
  public boolean canRemove;
  @JsonProperty("name")
  @XStreamAlias("Name")
  public String name;
  @JsonProperty("value")
  @XStreamAlias("Value")
  public String value;
  @JsonProperty("defaultValue")
  @XStreamAlias("DefaultValue")
  public String defaultValue;
  @JsonProperty("type")
  @XStreamAlias("Type")
  public String type;
  @JsonProperty("sectionName")
  @XStreamAlias("SectionName")
  public String sectionName;
  @JsonProperty("section")
  @XStreamAlias("Section")
  public String section;
  @JsonProperty("documented")
  @XStreamAlias("Documented")
  public boolean documented = true;
  
  public boolean isRemoved()
  {
    return removed;
  }
  
  public void setRemoved(boolean paramBoolean)
  {
    removed = paramBoolean;
  }
  
  public boolean isEnabled()
  {
    return enabled;
  }
  
  public void setEnabled(boolean paramBoolean)
  {
    enabled = paramBoolean;
  }
  
  public boolean isCanRemove()
  {
    return canRemove;
  }
  
  public void setCanRemove(boolean paramBoolean)
  {
    canRemove = paramBoolean;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String paramString)
  {
    name = paramString;
  }
  
  public String getValue()
  {
    return value;
  }
  
  public void setValue(String paramString)
  {
    value = paramString;
  }
  
  public String getDefaultValue()
  {
    return defaultValue;
  }
  
  public void setDefaultValue(String paramString)
  {
    defaultValue = paramString;
  }
  
  public String getType()
  {
    return type;
  }
  
  public void setType(String paramString)
  {
    type = paramString;
  }
  
  public String getSectionName()
  {
    return sectionName;
  }
  
  public void setSectionName(String paramString)
  {
    sectionName = paramString;
  }
  
  public String getSection()
  {
    return section;
  }
  
  public void setSection(String paramString)
  {
    section = paramString;
  }
  
  public boolean isDocumented()
  {
    return documented;
  }
  
  public void setDocumented(boolean paramBoolean)
  {
    documented = paramBoolean;
  }
  
  public boolean isUiBooleanValue()
  {
    return uiBooleanValue;
  }
  
  public void setUiBooleanValue(boolean paramBoolean)
  {
    uiBooleanValue = paramBoolean;
  }
  
  /* Error */
  public boolean equals(Object arg1)
  {
    // Byte code:
    //   0: iconst_1
    //   1: istore_2
    //   2: aload_1
    //   3: checkcast 2	com/wowza/wms/rest/AdvancedSetting
    //   6: astore_3
    //   7: aload_0
    //   8: getfield 60	com/wowza/wms/rest/AdvancedSetting:enabled	Z
    //   11: ifeq +99 -> 110
    //   14: goto +30 -> 44
    //   17: iconst_1
    //   18: goto +66 -> 84
    //   21: iload_2
    //   22: aload_0
    //   23: getfield 74	com/wowza/wms/rest/AdvancedSetting:value	Ljava/lang/String;
    //   26: aload_3
    //   27: getfield 74	com/wowza/wms/rest/AdvancedSetting:value	Ljava/lang/String;
    //   30: if_acmpne +59 -> 89
    //   33: goto -16 -> 17
    //   36: iconst_0
    //   37: goto +88 -> 125
    //   40: iconst_1
    //   41: goto +84 -> 125
    //   44: iload_2
    //   45: aload_0
    //   46: getfield 69	com/wowza/wms/rest/AdvancedSetting:name	Ljava/lang/String;
    //   49: aload_3
    //   50: getfield 69	com/wowza/wms/rest/AdvancedSetting:name	Ljava/lang/String;
    //   53: invokevirtual 101	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   56: iand
    //   57: istore_2
    //   58: iload_2
    //   59: aload_0
    //   60: getfield 82	com/wowza/wms/rest/AdvancedSetting:type	Ljava/lang/String;
    //   63: aload_3
    //   64: getfield 82	com/wowza/wms/rest/AdvancedSetting:type	Ljava/lang/String;
    //   67: invokevirtual 101	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   70: iand
    //   71: istore_2
    //   72: aload_0
    //   73: getfield 74	com/wowza/wms/rest/AdvancedSetting:value	Ljava/lang/String;
    //   76: ifnull -55 -> 21
    //   79: goto +14 -> 93
    //   82: iload_2
    //   83: ireturn
    //   84: iand
    //   85: istore_2
    //   86: goto -4 -> 82
    //   89: iconst_0
    //   90: goto -6 -> 84
    //   93: iload_2
    //   94: aload_0
    //   95: getfield 74	com/wowza/wms/rest/AdvancedSetting:value	Ljava/lang/String;
    //   98: aload_3
    //   99: getfield 74	com/wowza/wms/rest/AdvancedSetting:value	Ljava/lang/String;
    //   102: invokevirtual 101	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   105: iand
    //   106: istore_2
    //   107: goto -25 -> 82
    //   110: iload_2
    //   111: aload_0
    //   112: getfield 60	com/wowza/wms/rest/AdvancedSetting:enabled	Z
    //   115: aload_3
    //   116: getfield 60	com/wowza/wms/rest/AdvancedSetting:enabled	Z
    //   119: if_icmpne -83 -> 36
    //   122: goto -82 -> 40
    //   125: iand
    //   126: istore_2
    //   127: goto -45 -> 82
  }
  
  public String toString()
  {
    return sectionName + "/" + name + Severity.startsWith(61 - 30, "?Txrf>%") + type + Utils.toString("w\01686.9g~", 15 * 57) + value;
  }
}

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

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationConfig;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.introspect.VisibilityChecker;
import com.sun.org.apache.xml.internal.serialize.OutputFormat;
import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import com.wowza.util.HTTPUtils;
import com.wowza.util.StringUtils;
import com.wowza.util.URLUtils;
import com.wowza.wms.bootstrap.Bootstrap;
import com.wowza.wms.rest.restserver.WMSRestLogger;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;
import javax.validation.ConstraintValidatorContext;
import javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder;
import javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import org.apache.log4j.Logger;
import org.restlet.data.MediaType;
import org.restlet.data.Method;
import org.restlet.data.Status;
import org.restlet.engine.Engine;
import org.restlet.ext.httpclient.HttpClientHelper;
import org.restlet.ext.jackson.JacksonConverter;
import org.restlet.ext.jackson.JacksonRepresentation;
import org.restlet.ext.xstream.XstreamRepresentation;
import org.restlet.representation.Representation;
import org.restlet.resource.ResourceException;
import org.restlet.resource.ServerResource;
import org.restlet.security.User;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

@ConfigBaseValid
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true, value={"context"})
@WMSConfig(xmlFilename="")
@WMSFilterWhiteSpace
@JsonSerialize
@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE, getterVisibility=JsonAutoDetect.Visibility.NONE, isGetterVisibility=JsonAutoDetect.Visibility.NONE, setterVisibility=JsonAutoDetect.Visibility.NONE, creatorVisibility=JsonAutoDetect.Visibility.NONE)
public class ConfigBase
  extends ServerResource
{
  private static final ThreadLocal<HashMap<String, Object>> a = new ThreadLocal();
  private static final Method[] b = { Method.OPTIONS, Method.GET, Method.PUT, Method.POST };
  private static final String c = Method.OPTIONS.toString() + "," + Method.GET.toString() + "," + Method.PUT.toString() + "," + Method.POST.toString();
  private static final JacksonCustomConverter d = new JacksonCustomConverter(null);
  private static final MessageCapture e = new MessageCapture();
  @JsonProperty("restURI")
  @XStreamAsAttribute
  protected String restURI;
  @JsonProperty("version")
  @XStreamAlias("Version")
  protected String version;
  @XStreamOmitField
  protected int rootVersion = 0;
  @XStreamOmitField
  protected String queryParam;
  @XStreamOmitField
  private Status f;
  @JsonProperty("serverName")
  @XStreamAsAttribute
  @WMSPathVariable(description="Reserved for future use")
  protected String serverName;
  @JsonProperty("saveFieldList")
  @XStreamAlias("SaveFieldList")
  protected List<String> saveFieldList = null;
  @XStreamOmitField
  protected static final Object readWriteLockObj = new Object();
  @XStreamOmitField
  protected static Logger log = null;
  @XStreamOmitField
  public static boolean logDebugInfo = false;
  @XStreamOmitField
  public Locale currentLocale = new Locale(Utils.toString("39", -35 - 7));
  @XStreamOmitField
  public static String wowzaBasePath;
  @XStreamOmitField
  public static String defaultMediaType = Severity.startsWith(55 * 33, "}kvt");
  @XStreamOmitField
  protected User restletUser;
  @XStreamOmitField
  public HashMap<String, String> stringKeyMap = new HashMap();
  @XStreamOmitField
  public HashMap<String, Field> fieldsForKeyMap = new HashMap();
  @XStreamOmitField
  public List<String> missingVariables = new ArrayList();
  @XStreamOmitField
  public static boolean inTradeShowMode = false;
  @XStreamOmitField
  protected String errorMessage;
  @XStreamOmitField
  public ConfigBaseException currentException = null;
  @XStreamOmitField
  public static boolean alreadyInit = false;
  @XStreamOmitField
  public List<String> existingPropertiesPath = new ArrayList();
  public static final String XMLFILE_RESOURCE_PATH = "/com/wowza/wms/conf/";
  @XStreamOmitField
  public static List<MediaType> supportedMediaTypes = new ArrayList();
  @XStreamOmitField
  protected String genericMessage;
  @XStreamOmitField
  protected HashMap<String, String> warningMessages = new HashMap();
  @XStreamOmitField
  protected String prefixConstraintName = "";
  @XStreamOmitField
  public static String urlHostPort;
  @XStreamOmitField
  public static String urlServer = Utils.toString("F~~z|ks4\022'12 4\030", -7 - -64);
  @XStreamOmitField
  protected boolean useLocalResourceIfAvailable = false;
  
  public String getVersion()
  {
    return version;
  }
  
  public void setVersion(String paramString)
  {
    version = paramString;
  }
  
  public String getErrorMessage()
  {
    return errorMessage;
  }
  
  public String getGenericMessage()
  {
    return genericMessage;
  }
  
  public HashMap<String, String> getWarningMessages()
  {
    return warningMessages;
  }
  
  public String getRestURI()
  {
    return restURI;
  }
  
  public void setRestURI(String paramString)
  {
    restURI = paramString;
  }
  
  public String getQueryParam()
  {
    return queryParam;
  }
  
  public void setQueryParam(String paramString)
  {
    queryParam = paramString;
  }
  
  public String getServerName()
  {
    return serverName;
  }
  
  public void setServerName(String paramString)
  {
    serverName = paramString;
  }
  
  @JsonIgnore
  public Map<String, String> getQueryParamMap()
  {
    HashMap localHashMap = new HashMap();
    int i;
    label27:
    Object localObject;
    int j;
    if (!StringUtils.isEmpty(getQueryParam()))
    {
      break label105;
      for (;;)
      {
        i++;
        break;
        String str2 = ((String)localObject).substring(j + 1);
        localHashMap.put(((String)localObject).substring(0, j), str2);
      }
    }
    for (;;)
    {
      String[] arrayOfString;
      localObject = arrayOfString[i];
      j = ((String)localObject).indexOf("=");
      String str1;
      if (j >= 0)
      {
        break label27;
        arrayOfString = str1.split(Severity.startsWith('?' / 101, "X\"X"));
        i = 0;
        break label150;
        label105:
        localLinkedHashMap = new LinkedHashMap();
        str1 = getQueryParam();
        if (str1 == null) {
          break label138;
        }
        break label140;
      }
      localHashMap.put(localObject, null);
      label138:
      label140:
      label150:
      while (i >= arrayOfString.length)
      {
        do
        {
          LinkedHashMap localLinkedHashMap;
          return localHashMap;
        } while (str1.length() <= 0);
        break;
      }
    }
  }
  
  public Map<String, String> getQueryParamMapLowercase()
  {
    HashMap localHashMap = new HashMap();
    if (StringUtils.isEmpty(getQueryParam())) {}
    for (;;)
    {
     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

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